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
Cheng Zhao
94c1fb32a7
Try work around VS's bug
2015-08-12 23:07:15 +08:00
Cheng Zhao
d9b845fcdf
Make session parameter work with null value
2015-08-12 22:57:25 +08:00
Cheng Zhao
225321b580
Make the completion callback optional
2015-08-12 21:32:52 +08:00
Cheng Zhao
f493eb34ae
Implement protocol.registerHttpProtocol
2015-08-12 21:09:44 +08:00
Cheng Zhao
1f2d7d1cd8
Implement protocol.registerBufferProtocol
2015-08-12 20:37:52 +08:00
Cheng Zhao
d2681d2ba1
Implement protocol.registerFileProtocol
2015-08-12 15:22:19 +08:00
Cheng Zhao
337460cdc2
Enable return error for arbitray request job
2015-08-12 13:50:31 +08:00
Cheng Zhao
ee51e37db7
Guard against callback being called twice
2015-08-12 13:43:27 +08:00
Cheng Zhao
96d53d279e
Initial implementation of new protocol API
2015-08-12 13:30:19 +08:00
Haojian Wu
f9fee9174a
net::URLFetcher::Create now returns object with scoped_ptr.
2015-08-11 09:48:55 +08:00
Cheng Zhao
0644129fbe
Pass net::URLRequestContextGetter in scoped_refptr
2015-08-10 15:28:18 +08:00
Robo
b0e73532de
protocol: fix request headers in urlRequestFetchJob
2015-07-27 02:51:41 +05:30
Robo
97c90d31d3
get jsprotocolhandler in IO thread
2015-07-22 21:54:12 +05:30
Robo
a1ec07e07e
read post-filtered data when filters are present
2015-07-22 21:45:08 +05:30