Граф коммитов

109 Коммитов

Автор SHA1 Сообщение Дата
Robo dc0151099c session: provide uploadData with webrequest api when available 2016-01-27 18:39:40 +05:30
Cheng Zhao 89fccb7eb2 Fix crash when request failed 2016-01-06 21:07:07 +08:00
Cheng Zhao e96f89133c Reset whole headers when requestHeaders is set 2015-12-24 16:59:13 +08:00
Cheng Zhao 3e1edfc9d0 Cancel callback in OnComplete event 2015-12-23 10:20:59 +08:00
Cheng Zhao c8c4381085 Cancel callback when URLRequest is destroyed 2015-12-22 23:35:23 +08:00
Cheng Zhao 9438d42322 Use generic function to handle events 2015-12-12 13:49:58 +08:00
Cheng Zhao f976e1eda3 Add generic version for FillDetailsObject 2015-12-12 13:20:53 +08:00
Cheng Zhao d3e723557e spec: Add test cases for webRequest 2015-12-12 11:31:19 +08:00
Cheng Zhao fed94aada0 Make the webRequest listener asynchronous 2015-12-12 00:09:03 +08:00
Cheng Zhao d3c8363450 EventType can not be OR'ed 2015-12-11 21:22:23 +08:00
Cheng Zhao 15cc8164b8 Use lower case for getters 2015-12-11 21:21:02 +08:00
Cheng Zhao 67886cf513 Parse filters in API code 2015-12-11 21:14:13 +08:00
Cheng Zhao 79a627014c Unify how listeners are handled 2015-12-11 21:02:44 +08:00
Cheng Zhao 9d406b695f Simpily the code that fills |details| 2015-12-11 20:40:39 +08:00
Cheng Zhao e295eb0de7 Fix memory leak 2015-12-11 20:11:59 +08:00
Cheng Zhao 467e3b25b2 EvenTypes => EventType 2015-12-11 20:11:22 +08:00
Cheng Zhao 62f4b25cf9 Allow passing null to webRequest 2015-12-11 19:13:56 +08:00
Cheng Zhao 98ba1a24db Merge pull request #3640 from deepak1556/webrequest_api_patch
session: add webrequest api
2015-12-11 16:56:00 +08:00
Robo 658accab94 fix pointer usage 2015-12-11 00:25:25 +05:30
Cheng Zhao a05aa81570 Merge pull request #3701 from deepak1556/protocol_post_data_patch
protocol: provide upload data when available
2015-12-10 19:38:35 +08:00
Robo 461ee49988 fix response headers modification 2015-12-09 20:14:18 +05:30
Robo c5b5bbbeb2 add documentation 2015-12-09 20:14:18 +05:30
Robo 29f32c5ec7 support filtering event with url regex 2015-12-09 20:14:18 +05:30
Robo 13b5cab738 session: add webrequest api 2015-12-09 20:14:18 +05:30
deepak1556 fbb5091f94 provide option to set content for POST request with url_fetcher 2015-12-09 20:10:57 +05:30
Robo 855d49100f protocol: api to register schemes that can handle service worker 2015-12-09 03:11:58 +05:30
Cheng Zhao 73e7773d84 Update to API changes of Chrome 47 2015-12-07 19:56:23 +08:00
Cheng Zhao 0f17a0163d Put common constants in atom_constants 2015-12-01 16:21:15 +08:00
Paul Betts 7fd1db192b Lint harder 2015-11-30 18:12:00 -08:00
Paul Betts 549da7fd91 Linting 2015-11-30 11:10:18 -08:00
Paul Betts 7cce3987eb Add CORS header to file jobs 2015-11-30 11:08:45 -08:00
Paul Betts 65cb1488b0 Fix CORS header code to be cleaner 2015-11-30 11:08:44 -08:00
Paul Betts 7622bb40a9 Enable all origins via CORS header for custom schemes
This PR disables CORS for custom schemes, which allows you to serve Font
resources from custom schemes after using registerCustomSchemeAsSecure
2015-11-30 11:08:43 -08:00
Robo 167f11e797 protocol: handle http responses with no content 2015-11-23 01:07:14 +05:30
Cheng Zhao c5bfac1969 Add session.setCertificateVerifyProc 2015-11-18 11:17:08 +08:00
Cheng Zhao ebe66daa56 Emit verify-certificate only when default verifier fails 2015-11-17 21:36:36 +08:00
Cheng Zhao e3517b701e Create a new CertVerifierRequest for each request
It greatly simplifies the code.
2015-11-17 19:44:55 +08:00
Cheng Zhao ea1e4160ea Move AtomSSLConfigService to atom/browser/net 2015-11-17 19:05:38 +08:00
Cheng Zhao 37f355724a Move AtomCertVerifier to atom/browser/net 2015-11-17 19:03:09 +08:00
Cheng Zhao fbb8e61958 Replace "Url" in API names with "URL" 2015-11-13 16:03:40 +08:00
Cheng Zhao f40a3f72d7 Converted callback can only be called for once 2015-10-28 20:44:46 +08:00
Cheng Zhao 9847747736 Use the callback converter in JsAsker 2015-10-28 19:54:59 +08:00
Robo 57c910faef protocol: respect provided mimetype in generated response headers 2015-09-16 08:34:04 +05:30
Cheng Zhao 93bbc0bca9 Don't reference RequestContextGetter in JS objects
V8 doesn't guarrentee the C++ class of JS objects will get destroyed, so
this will result in RequestContextGetter never getting freed
2015-09-09 19:27:28 +08:00
Cheng Zhao 53b9d61831 Fix building on Windows 2015-09-03 20:07:29 +08:00
Cheng Zhao 45491ca7ab Fix API changes 2015-09-03 17:50:23 +09:00
Cheng Zhao a88f951b2f Always set headers for response
When intercepting HTTP protocols Chromium will assume there is always headers
set, so we have to provide headers for all the responses to avoid the
crash.
2015-08-13 22:26:27 +08:00
Cheng Zhao 02714d466c Fix crash when requesting invalid url 2015-08-13 21:21:23 +08:00
Cheng Zhao d0ef43bd12 Completion callback is called on IO thread 2015-08-12 23:16:17 +08:00
Cheng Zhao 78171e2072 Don't use C++11 to not crash VS 2015-08-12 23:14:20 +08:00