| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_REQUEST_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 void ContinueMaybeLoadSubResource(); | 158 void ContinueMaybeLoadSubResource(); |
| 159 | 159 |
| 160 // AppCacheHost::Observer override | 160 // AppCacheHost::Observer override |
| 161 void OnCacheSelectionComplete(AppCacheHost* host) override; | 161 void OnCacheSelectionComplete(AppCacheHost* host) override; |
| 162 | 162 |
| 163 // URLLoaderRequestHandler override | 163 // URLLoaderRequestHandler override |
| 164 void MaybeCreateLoader(const ResourceRequest& resource_request, | 164 void MaybeCreateLoader(const ResourceRequest& resource_request, |
| 165 ResourceContext* resource_context, | 165 ResourceContext* resource_context, |
| 166 LoaderCallback callback) override; | 166 LoaderCallback callback) override; |
| 167 mojom::URLLoaderFactoryPtr MaybeCreateSubresourceFactory() override; | 167 mojom::URLLoaderFactoryPtr MaybeCreateSubresourceFactory() override; |
| 168 bool MaybeGetFallbackForResponse(const ResourceResponseHead& response, |
| 169 mojom::URLLoaderClientPtr* client, |
| 170 mojom::URLLoaderRequest* request) override; |
| 171 bool MaybeGetFallbackForRedirect(const ResourceResponseHead& response, |
| 172 const net::RedirectInfo& redirect_info, |
| 173 mojom::URLLoaderClientPtr* client, |
| 174 mojom::URLLoaderRequest* request) override; |
| 168 | 175 |
| 169 // Data members ----------------------------------------------- | 176 // Data members ----------------------------------------------- |
| 170 | 177 |
| 171 // What host we're servicing a request for. | 178 // What host we're servicing a request for. |
| 172 AppCacheHost* host_; | 179 AppCacheHost* host_; |
| 173 | 180 |
| 174 // Frame vs subresource vs sharedworker loads are somewhat different. | 181 // Frame vs subresource vs sharedworker loads are somewhat different. |
| 175 ResourceType resource_type_; | 182 ResourceType resource_type_; |
| 176 | 183 |
| 177 // True if corresponding AppCache group should be resetted before load. | 184 // True if corresponding AppCache group should be resetted before load. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // The AppCache host instance. We pass this to the | 254 // The AppCache host instance. We pass this to the |
| 248 // AppCacheSubresourceURLFactory instance on creation. | 255 // AppCacheSubresourceURLFactory instance on creation. |
| 249 base::WeakPtr<AppCacheHost> appcache_host_; | 256 base::WeakPtr<AppCacheHost> appcache_host_; |
| 250 | 257 |
| 251 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); | 258 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); |
| 252 }; | 259 }; |
| 253 | 260 |
| 254 } // namespace content | 261 } // namespace content |
| 255 | 262 |
| 256 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 263 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ |
| OLD | NEW |