Cheng Zhao
4e2cb549c7
Notify net error asyncronously
...
Notifying net error syncronously would result in crash.
2017-08-02 11:14:06 +09:00
Kevin Sawicki
c43c3b3d80
Revert "protocol: use streaming interface between fetcher and requestjob"
...
This reverts commit 71b5d946e0
.
2017-05-26 09:47:22 -07:00
Kevin Sawicki
43f7520d4f
Add missing brightray prefix
2017-05-19 08:46:15 -07:00
Kevin Sawicki
f556d1924d
Merge pull request #9358 from electron/fetch_job_uaf_patch
...
protocol: use streaming interface between fetcher and requestjob
2017-05-18 09:58:05 -07:00
Kevin Sawicki
ef4bf7ed93
Use status code constant
2017-05-11 15:33:56 -07:00
deepak1556
3c88447be6
protocol: provide default response code for custom request jobs
2017-05-11 15:33:56 -07:00
deepak1556
71b5d946e0
protocol: use streaming interface between fetcher and requestjob
2017-05-11 22:52:49 +05:30
Cheng Zhao
b2b2d8d9a4
Fix crash on exit
2017-04-27 16:34:52 +09:00
Cheng Zhao
6be10ffef2
Fix more API changes due to name changes
2017-04-27 16:34:52 +09:00
Cheng Zhao
50e3bfa764
Fix API changes of base::Value
2017-04-27 16:34:52 +09:00
Cheng Zhao
fc2d62d5cb
Fix API changes of Chrome58
2017-04-27 16:34:52 +09:00
Kevin Sawicki
f5a75c4e87
Merge pull request #9076 from electron/cleanup-cpp
...
Cleanup cpp codebase
2017-04-03 08:30:08 -07:00
Haojian Wu
328cf4789b
Should override the virtual destructor.
2017-03-30 23:19:43 +02:00
Haojian Wu
1b9780035c
Remove redundant calls to smart pointer's get method.
2017-03-30 22:22:40 +02:00
Kevin Sawicki
4441d557a2
Merge pull request #9007 from electron/net_redirect_patch
...
net: allow controlling redirects
2017-03-28 09:31:05 -07:00
deepak1556
3ae62615f4
net: allow controlling redirects
2017-03-28 18:46:21 +05:30
deepak1556
93b444eef9
net: catch source stream creation failure for content encoding
2017-03-23 23:36:05 +05:30
Kevin Sawicki
1e581d6814
Use unique_ptr for passing VerifyRequestParams
2017-02-08 11:59:43 -08:00
Kevin Sawicki
70178adb6e
Use object for verification request
2017-02-08 11:59:43 -08:00
Kevin Sawicki
37db804099
Use NetLogWithSource since BoundNetLog no longer exists
2017-02-08 11:59:43 -08:00
Greg Nolle
e29b64a18a
modify CertVerifier Class
...
* respond to multiple similar verification requests.
* accept net error result as callback response.
2017-02-08 11:59:43 -08:00
Cheng Zhao
6763977316
Update URLPattern to its latest version
2017-02-06 10:34:29 -08:00
Cheng Zhao
53bf82dd7c
Update URLRequestFetchJob
2017-02-06 10:34:29 -08:00
Cheng Zhao
47c1bc9f66
Update ResponsePiper
2017-02-06 10:34:29 -08:00
Cheng Zhao
1a15b45736
--cipher-suite-blacklist is also removed
2017-02-06 10:34:29 -08:00
Cheng Zhao
dc9000f344
--ssl-version-fallback-min is removed by Chrome
2017-02-06 10:34:28 -08:00
Cheng Zhao
3ea6d88763
Update AtomCertVerifier
2017-02-06 10:34:28 -08:00
Cheng Zhao
c0697d8abe
SetupFilter is replaced with SetUpSourceStream
2017-02-06 10:34:28 -08:00
Cheng Zhao
e91eed6758
FOR_EACH_OBSERVER is removed
2017-02-06 10:34:28 -08:00
Cheng Zhao
231173aa90
Namespace of ChangeCause has changed
2017-02-06 10:34:28 -08:00
Cheng Zhao
497f5a1199
Update files for Chrome 54 API changes
2017-01-19 09:05:59 +02:00
deepak1556
f9417e3fcc
net: disallow cookies from the cookie store
2016-12-21 11:54:48 +05:30
Kevin Sawicki
f2aabeefd5
Merge pull request #8085 from deepak1556/protocol_http_session_patch
...
protocol: support custom session with interceptHttpProtocol
2016-12-12 13:07:14 -08:00
deepak1556
7456b9ae17
net: add api to set request flags for testing
2016-12-09 09:54:30 -08:00
deepak1556
388b601503
URLRequestFetchJob should report start error
2016-12-07 16:34:28 +05:30
deepak1556
2b8b76a527
protocol: support custom session with interceptHttpProtocol
2016-12-07 16:22:34 +05:30
deepak1556
a0065e62fa
add about: protocol handler
2016-11-09 13:22:58 +05:30
Cheng Zhao
dfefa00a50
Merge pull request #7577 from thomsonreuters/net_module
...
net module
2016-10-31 10:31:56 +09:00
ali.ibrahim
6d7f179a9b
Fixing code review issues: making delegate_ a raw pointer.
2016-10-25 15:02:35 +02:00
ali.ibrahim
61278f9ace
Fixing code review issues.
2016-10-25 12:41:01 +02:00
deepak1556
5cbbd6efe6
session: exclude hosts from CT verification if they are handled by custom cert verifiers
2016-10-17 16:35:28 +05:30
ali.ibrahim
ac9e6eda95
Fixing a crash with pending URLRequests on shutdown.
2016-10-14 17:37:39 +02:00
ali.ibrahim
4347ce4a53
Formatting C++ code using ClangFormat.
2016-10-14 11:50:47 +02:00
ali.ibrahim
9cc8bfae1c
fixing space formatting issues.
2016-10-14 10:58:16 +02:00
ali.ibrahim
de29f2dde5
Fixing build: removing constness on net::HttpResponseHeaders as otherwise we would need a change in libchromiumcontent.
2016-10-13 17:51:19 +02:00
ali.ibrahim
6f5b0a28c5
Fixing code review issues: function call formatting, renaming JS member variables, refactoring response headers conversion.
2016-10-13 17:14:23 +02:00
ali.ibrahim
b290415bbd
Fixing build on Mac OS
2016-10-12 19:41:13 +02:00
ali.ibrahim
e472d11761
Caching response headers so that AtomURLRequest can be freed after the close event.
2016-10-12 14:54:25 +02:00
ali.ibrahim
ec1fc5a17b
Implementing error, close, finish, abort events management.
2016-10-12 14:54:24 +02:00
ali.ibrahim
bde30b90e8
Adding some implementation comments. Enforcing Chromium coding conventions.
2016-10-12 14:54:23 +02:00
ali.ibrahim
0588435882
Fixing cpplint issues.
2016-10-12 14:54:22 +02:00
ali.ibrahim
08947682b0
Implementing abort workflow, emitting error events.
2016-10-12 14:54:21 +02:00
ali.ibrahim
cbbc4376ca
Adding support for upload chunked encoding.
2016-10-12 14:54:20 +02:00
ali.ibrahim
9498a5738a
Refactoring net module, adding a ClientRequest and IncomingMessage classes.
2016-10-12 14:54:20 +02:00
ali.ibrahim
fcaf9cb031
Some code cleaning.
2016-10-12 14:54:19 +02:00
ali.ibrahim
f7525d7877
Adding support for POST requests.
2016-10-12 14:54:18 +02:00
ali.ibrahim
2b3b41d5f9
Implementing authentication callback.
2016-10-12 14:54:18 +02:00
ali.ibrahim
2d9d4af98d
Implementing URLRequest API, getting response body.
2016-10-12 14:54:17 +02:00
ali.ibrahim
81eab9887b
Adding URLResponse to emit response events, implementing status code.
2016-10-12 14:54:16 +02:00
ali.ibrahim
7521aeea09
Implement URLRequest::Delegate, handle thread sync.
2016-10-12 14:54:15 +02:00
Kevin Sawicki
24bcf6ac16
Add initial cookie changed event support
2016-09-29 09:16:29 -07:00
Cheng Zhao
f28e8d7168
Fix API changes of Chrome 53
2016-09-14 16:22:43 +09:00
deepak1556
bd291b9601
protocol: respect range header when reading from asar
2016-09-08 10:14:49 +05:30
Kevin Sawicki
6285500cdc
Sort includes alphabetically
2016-08-26 15:30:02 -07:00
bridiver
ca4cbe34a0
don't convert header names to nested values
...
fixes #6855
2016-08-15 17:21:14 -07:00
Cheng Zhao
b57665330c
Merge branch 'master' into chrome52
2016-07-21 05:34:36 -06:00
Cheng Zhao
e5ccb3fd5d
Remove lock in AtomCertVerifier
2016-07-13 12:07:57 +09:00
Haojian Wu
04f9d35312
Modernize to C++11: Use auto
key to improve code readability and maintainability.
2016-07-10 13:11:47 +02:00
Haojian Wu
fab02809c6
Modernize to C++11: NULL => nullptr.
...
No functional change.
2016-07-10 11:57:04 +02:00
Cheng Zhao
627028e3a0
Clear protocol handlers on exit
2016-07-09 17:02:55 +09:00
Cheng Zhao
1ba3907038
Update to API changes of Chrome 52
2016-07-04 15:32:43 +09:00
Cheng Zhao
fe0e17d1c3
Make api::Protocol thread safe
2016-06-16 11:09:52 +09:00
deepak1556
0e0235407b
fill net::URLRequest details on IO thread
2016-06-09 10:39:18 +05:30
Cheng Zhao
f02143b8f2
Clear the buffers before notifying the other end of the pipe
2016-05-30 22:38:01 +09:00
Cheng Zhao
49f1278601
Refactor the URLRequestFetchJob code
...
This makes the read end and write end of the pipe have same logic, so it
is more easy to maintain.
2016-05-30 20:31:00 +09:00
Cheng Zhao
912cedc593
Merge pull request #5753 from deepak1556/url_request_fetch_job_patch
...
protocol: store initial response data for when resource loader becomes ready
2016-05-30 10:53:53 +00:00
deepak1556
23fbb57d72
protocol: store response data when reader is not ready
2016-05-29 13:17:31 +05:30
Cheng Zhao
f4fe60d126
Set default mimeType for BufferJob
2016-05-28 22:36:22 +09:00
Cheng Zhao
06800940ec
Fix cpplint warnings
2016-05-23 13:03:43 +09:00
Cheng Zhao
7ba391da7c
Update to API changes of Chrome 51
2016-05-23 10:59:39 +09:00
Brian R. Bondy
ff91aeb5d4
Iterator to use size_t
2016-05-13 11:07:17 +09:00
Cheng Zhao
18f5fcde60
Fix some coding style issues
2016-04-20 09:18:50 +09:00
deepak1556
ddf962c6ea
client_id is accessed on different threads
2016-04-19 10:01:38 +05:30
deepak1556
b8e04f4947
set client id on AtomNetworkDelegate instead of cmd line switch
2016-04-18 11:35:24 +05:30
deepak1556
fcf04377d7
set network emulation client id in request headers
2016-04-18 10:49:00 +05:30
Cheng Zhao
a07612c1ed
Merge branch '5074-did-get-response-details-resource-type' of https://github.com/Mr0grog/electron into Mr0grog-5074-did-get-response-details-resource-type
2016-04-11 21:05:40 +09:00
Rob Brackett
1a842bf9d5
Fix trailing whitespace caught by linter.
2016-04-08 13:15:40 -07:00
Rob Brackett
c1b1348735
Add resourceType
arg to webContents did-get-response-details
event.
...
Fixes #5074 and follows @zcbenz's recommendation to expose ResourceTypeToString from atom_network_delegate publicly.
Also adds testing for other arguments to the `did-get-response-details` events, since there were no existing tests for them.
2016-04-08 11:19:36 -07:00
deepak1556
3fb39ad3ef
provide option to override status line
2016-04-08 14:03:57 +05:30
deepak1556
4fc35a4587
session: webRequest.OnHeadersReceived should follow server redirect
...
Its required to follow server redirects.
2016-04-08 11:40:43 +05:30
deepak1556
73201e419d
protocol: return status of ReadRawData instead of relying on SetStatus
2016-03-28 02:09:56 +05:30
Cheng Zhao
89f17e0baf
Create complete URLRequestContextGetter for URLRequestFetchJob
...
The trivial one is causing crashes.
2016-03-10 17:06:23 +09:00
Cheng Zhao
dd4d3db47b
Fix node integration not working
2016-03-10 17:06:21 +09:00
Cheng Zhao
a31cbd24a1
Final pieces of int16 and .Pass()
2016-03-10 17:06:21 +09:00
Cheng Zhao
5fae63a2f5
Fix compilation errors on OS X
2016-03-10 17:06:21 +09:00
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