OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/appcache/appcache_subresource_url_factory.h" | 5 #include "content/browser/appcache/appcache_subresource_url_factory.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "content/browser/appcache/appcache_request_handler.h" | 9 #include "content/browser/appcache/appcache_request_handler.h" |
10 #include "content/browser/appcache/appcache_url_loader_job.h" | 10 #include "content/browser/appcache/appcache_url_loader_job.h" |
11 #include "content/browser/appcache/appcache_url_loader_request.h" | 11 #include "content/browser/appcache/appcache_url_loader_request.h" |
12 #include "content/browser/url_loader_factory_getter.h" | 12 #include "content/browser/url_loader_factory_getter.h" |
13 #include "content/common/resource_request.h" | |
14 #include "content/common/url_loader_factory.mojom.h" | 13 #include "content/common/url_loader_factory.mojom.h" |
15 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "content/public/common/resource_request.h" |
16 #include "mojo/public/cpp/bindings/binding.h" | 16 #include "mojo/public/cpp/bindings/binding.h" |
17 #include "mojo/public/cpp/bindings/binding_set.h" | 17 #include "mojo/public/cpp/bindings/binding_set.h" |
18 #include "mojo/public/cpp/bindings/interface_ptr.h" | 18 #include "mojo/public/cpp/bindings/interface_ptr.h" |
19 #include "net/traffic_annotation/network_traffic_annotation.h" | 19 #include "net/traffic_annotation/network_traffic_annotation.h" |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 // Implements the URLLoaderFactory mojom for AppCache requests. | 23 // Implements the URLLoaderFactory mojom for AppCache requests. |
24 AppCacheSubresourceURLFactory::AppCacheSubresourceURLFactory( | 24 AppCacheSubresourceURLFactory::AppCacheSubresourceURLFactory( |
25 mojom::URLLoaderFactoryRequest request, | 25 mojom::URLLoaderFactoryRequest request, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 const ResourceRequest& request, | 69 const ResourceRequest& request, |
70 SyncLoadCallback callback) { | 70 SyncLoadCallback callback) { |
71 NOTREACHED(); | 71 NOTREACHED(); |
72 } | 72 } |
73 | 73 |
74 void AppCacheSubresourceURLFactory::OnConnectionError() { | 74 void AppCacheSubresourceURLFactory::OnConnectionError() { |
75 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); | 75 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); |
76 } | 76 } |
77 | 77 |
78 } // namespace content | 78 } // namespace content |
OLD | NEW |