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
Aleksei Kuzmin
a315d6330c
Remove base::Value::IsType
...
https://chromium-review.googlesource.com/659798
2018-06-19 11:49:40 +10: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
c6f4bbd143
also format missing .cc files
2018-04-18 20:48:45 -04:00
deepak1556
007ea500d0
REVIEW: Re-use devtools network throttling from content layer
...
https://chromium-review.googlesource.com/c/chromium/src/+/664356
2018-03-20 10:13:15 +03:00
Aleksei Kuzmin
6c7ad3ac58
Remove the dependence on BrowserThread::FILE for
...
https://codereview.chromium.org/2944313003
2017-11-24 10:58:16 +09:00
Paul Frazee
c2d9e082cb
Fix crash in custom protocols caused by bad callback exec
2017-10-25 21:01:53 -05: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
deepak1556
71b5d946e0
protocol: use streaming interface between fetcher and requestjob
2017-05-11 22:52:49 +05:30
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
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
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
Cheng Zhao
1ba3907038
Update to API changes of Chrome 52
2016-07-04 15:32:43 +09:00
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
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
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
5fae63a2f5
Fix compilation errors on OS X
2016-03-10 17:06:21 +09:00
Cheng Zhao
89fccb7eb2
Fix crash when request failed
2016-01-06 21:07:07 +08:00
deepak1556
fbb5091f94
provide option to set content for POST request with url_fetcher
2015-12-09 20:10:57 +05:30
Cheng Zhao
73e7773d84
Update to API changes of Chrome 47
2015-12-07 19:56:23 +08:00
Robo
167f11e797
protocol: handle http responses with no content
2015-11-23 01:07:14 +05:30
Cheng Zhao
45491ca7ab
Fix API changes
2015-09-03 17:50:23 +09:00
Cheng Zhao
02714d466c
Fix crash when requesting invalid url
2015-08-13 21:21: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
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
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
92f3371118
Use |request|'s headers if possible
2015-06-17 11:30:31 +08:00
Cheng Zhao
543c4d5597
Allow setting referrer
2015-06-17 11:22:02 +08:00
Cheng Zhao
e07f5cd53f
Use |request|'s method if |method| is not specified
2015-06-17 11:11:13 +08:00
Cheng Zhao
66c4c7e77b
Clear pending_buffer_ at correct time
2015-06-17 11:04:15 +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