OLD | NEW |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ |
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "content/browser/appcache/appcache_entry.h" | 13 #include "content/browser/appcache/appcache_entry.h" |
14 #include "content/browser/appcache/appcache_job.h" | 14 #include "content/browser/appcache/appcache_job.h" |
15 #include "content/browser/appcache/appcache_response.h" | 15 #include "content/browser/appcache/appcache_response.h" |
16 #include "content/browser/appcache/appcache_storage.h" | 16 #include "content/browser/appcache/appcache_storage.h" |
17 #include "content/browser/loader/url_loader_request_handler.h" | 17 #include "content/browser/loader/url_loader_request_handler.h" |
18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
19 #include "content/common/resource_request.h" | |
20 #include "content/common/url_loader.mojom.h" | 19 #include "content/common/url_loader.mojom.h" |
| 20 #include "content/public/common/resource_request.h" |
21 #include "mojo/public/cpp/bindings/binding.h" | 21 #include "mojo/public/cpp/bindings/binding.h" |
22 #include "mojo/public/cpp/system/data_pipe.h" | 22 #include "mojo/public/cpp/system/data_pipe.h" |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 | 25 |
26 class AppCacheRequest; | 26 class AppCacheRequest; |
27 class NetToMojoPendingBuffer; | 27 class NetToMojoPendingBuffer; |
28 | 28 |
29 // AppCacheJob wrapper for a mojom::URLLoader implementation which returns | 29 // AppCacheJob wrapper for a mojom::URLLoader implementation which returns |
30 // responses stored in the AppCache. | 30 // responses stored in the AppCache. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // The Callback to be invoked in the network service land to indicate if | 125 // The Callback to be invoked in the network service land to indicate if |
126 // the request can be serviced via the AppCache. | 126 // the request can be serviced via the AppCache. |
127 LoaderCallback loader_callback_; | 127 LoaderCallback loader_callback_; |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(AppCacheURLLoaderJob); | 129 DISALLOW_COPY_AND_ASSIGN(AppCacheURLLoaderJob); |
130 }; | 130 }; |
131 | 131 |
132 } // namespace content | 132 } // namespace content |
133 | 133 |
134 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ | 134 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ |
OLD | NEW |