Robo
9989195f19
fix: notify request context shutdown on IO before cleanup ( #14058 )
2018-08-14 14:07:53 -07:00
Charles Kerr
b9490177da
Revert "[WIP] refactor: (Part I) make the ownership of URLRequestContextGetter more clear ( #13956 )"
...
This reverts commit 1c0bb06d4a
.
2018-08-13 16:16:04 -07:00
Robo
1c0bb06d4a
[WIP] refactor: (Part I) make the ownership of URLRequestContextGetter more clear ( #13956 )
...
* refactor: desttroy URLRequestContextGetter on IO thread
* Accepts a factory class that can customize the creation of URLRequestContext
* Use a separate request context for media which is derived from the default
* Notify URLRequestContextGetter observers and cleanup on IO thread
* Move most of brightray net/ classes into atom net/
* refactor: remove refs to URLRequestContextGetter on shutdown
* refactor: remove brigtray switches.{cc|h}
* refactor: remove brightray network_delegate.{cc|h}
* refactor: make AtomURLRequestJobFactory the top level factory.
* Allows to use the default handler from content/ for http{s}, ws{s} schemes.
* Removes the storage of job factory in URLRequestContextGetter.
2018-08-13 15:22:45 -07:00
Milan Burda
2337237d58
Refactoring: use C++11 class member variable initialization
2018-05-22 00:18:38 +02:00
Jeremy Apthorp
f1587da480
[chromium-style] out-of-line default constructors and destructors
2018-04-19 11:12:58 -07:00
Shelley Vohr
53bdf22c85
clang-format atom files
2018-04-18 20:48:45 -04: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
deepak1556
71b5d946e0
protocol: use streaming interface between fetcher and requestjob
2017-05-11 22:52:49 +05:30
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
deepak1556
23fbb57d72
protocol: store response data when reader is not ready
2016-05-29 13:17:31 +05:30
Cheng Zhao
7ba391da7c
Update to API changes of Chrome 51
2016-05-23 10:59:39 +09:00
Cheng Zhao
89f17e0baf
Create complete URLRequestContextGetter for URLRequestFetchJob
...
The trivial one is causing crashes.
2016-03-10 17:06:23 +09:00
Cheng Zhao
5fae63a2f5
Fix compilation errors on OS X
2016-03-10 17:06:21 +09:00
Cheng Zhao
73e7773d84
Update to API changes of Chrome 47
2015-12-07 19:56:23 +08:00
Cheng Zhao
d9b845fcdf
Make session parameter work with null value
2015-08-12 22:57:25 +08:00
Cheng Zhao
f493eb34ae
Implement protocol.registerHttpProtocol
2015-08-12 21:09:44 +08:00
Cheng Zhao
0644129fbe
Pass net::URLRequestContextGetter in scoped_refptr
2015-08-10 15:28:18 +08:00
Robo
57244e4718
use request context from session if provided
2015-07-16 20:18:33 +05:30
Robo
8eb87c5d2b
protocol: create separate request context for fetch job
2015-07-16 20:18:33 +05:30
Cheng Zhao
923296b4ee
Use the BrowserContext from protocol
2015-06-18 17:18:11 +08:00
Cheng Zhao
c2aa7d538f
Fix cpplint warnings
2015-06-17 11:34:47 +08:00
Cheng Zhao
543c4d5597
Allow setting referrer
2015-06-17 11:22:02 +08:00
Cheng Zhao
274854876c
Allow setting method for RequestHttpJob
2015-06-17 10:57:26 +08:00
Cheng Zhao
81db8e098e
Don't need buffer for piping data
2015-06-17 10:19:58 +08:00
Cheng Zhao
af05f26a5f
Make URLRequestFetchJob actually work
2015-06-17 09:31:33 +08:00
Cheng Zhao
44f8bfc550
Don't leak URLFetcher
2015-06-16 17:09:25 +08:00
deepak1556
a5e2f8e79e
protocol: adding requestHttpJob method
2015-06-15 03:20:45 +05:30