| 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> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/supports_user_data.h" | 15 #include "base/supports_user_data.h" |
| 16 #include "content/browser/appcache/appcache_entry.h" | 16 #include "content/browser/appcache/appcache_entry.h" |
| 17 #include "content/browser/appcache/appcache_host.h" | 17 #include "content/browser/appcache/appcache_host.h" |
| 18 #include "content/browser/appcache/appcache_service_impl.h" | 18 #include "content/browser/appcache/appcache_service_impl.h" |
| 19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
| 20 #include "content/public/common/resource_type.h" | 20 #include "content/public/common/resource_type.h" |
| 21 | 21 |
| 22 namespace net { | 22 namespace net { |
| 23 class NetworkDelegate; | 23 class NetworkDelegate; |
| 24 class URLRequest; | 24 class URLRequest; |
| 25 class URLRequestJob; | |
| 26 } // namespace net | 25 } // namespace net |
| 27 | 26 |
| 28 namespace content { | 27 namespace content { |
| 29 class AppCacheRequestHandlerTest; | 28 class AppCacheRequestHandlerTest; |
| 30 class AppCacheURLRequestJob; | 29 class AppCacheURLRequestJob; |
| 31 | 30 |
| 32 // An instance is created for each net::URLRequest. The instance survives all | 31 // An instance is created for each net::URLRequest. The instance survives all |
| 33 // http transactions involved in the processing of its net::URLRequest, and is | 32 // http transactions involved in the processing of its net::URLRequest, and is |
| 34 // given the opportunity to hijack the request along the way. Callers | 33 // given the opportunity to hijack the request along the way. Callers |
| 35 // should use AppCacheHost::CreateRequestHandler to manufacture instances | 34 // should use AppCacheHost::CreateRequestHandler to manufacture instances |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 // Backptr to the central service object. | 196 // Backptr to the central service object. |
| 198 AppCacheServiceImpl* service_; | 197 AppCacheServiceImpl* service_; |
| 199 | 198 |
| 200 friend class content::AppCacheRequestHandlerTest; | 199 friend class content::AppCacheRequestHandlerTest; |
| 201 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); | 200 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); |
| 202 }; | 201 }; |
| 203 | 202 |
| 204 } // namespace content | 203 } // namespace content |
| 205 | 204 |
| 206 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 205 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ |
| OLD | NEW |