|
ResourceLoader: Fix a bunch of double-cancellation/double-error notification cases.
There are a number of cases where ResourceLoader ends up notifying ResourceHandlers
twice of the same failure. This CL fixes them and adds some tests.
It also makes URLRequest no longer post notification on sync read errors, which was
causing double notifications in one of those cases.
Also fixes two other URLRequest consumers that depended on that behavior.
BUG= 669709, 670400
Committed: https://crrev.com/94f1bd9459e17972e8e3f6f51a3d10fbf4a94df7
Cr-Commit-Position: refs/heads/master@{#437057}
Total comments: 4
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+959 lines, -375 lines) |
Patch |
 |
M |
content/browser/cache_storage/cache_storage_blob_to_disk_cache.cc
|
View
|
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/loader/intercepting_resource_handler_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/loader/resource_loader.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/loader/resource_loader.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
5 chunks |
+41 lines, -51 lines |
0 comments
|
Download
|
 |
M |
content/browser/loader/resource_loader_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
24 chunks |
+524 lines, -257 lines |
0 comments
|
Download
|
 |
M |
content/browser/loader/test_resource_handler.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
7 chunks |
+85 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/loader/test_resource_handler.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
4 chunks |
+98 lines, -13 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request.cc
|
View
|
1
2
11
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_job.h
|
View
|
1
2
3
4
5
6
7
8
9
11
|
1 chunk |
+11 lines, -7 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_job.cc
|
View
|
1
2
3
4
5
6
7
8
9
11
|
6 chunks |
+24 lines, -19 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_test_job.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_test_job.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_test_util.h
|
View
|
1
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_test_util.cc
|
View
|
1
11
|
1 chunk |
+11 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
5 chunks |
+29 lines, -9 lines |
0 comments
|
Download
|
 |
M |
remoting/host/token_validator_base.cc
|
View
|
1
2
3
4
5
6
7
8
9
11
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
remoting/host/token_validator_factory_impl_unittest.cc
|
View
|
11
|
6 chunks |
+85 lines, -0 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 72 (57 generated)
|