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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 AppCacheRequestHandler(AppCacheHost* host, ResourceType resource_type, | 78 AppCacheRequestHandler(AppCacheHost* host, ResourceType resource_type, |
79 bool should_reset_appcache); | 79 bool should_reset_appcache); |
80 | 80 |
81 // AppCacheHost::Observer override | 81 // AppCacheHost::Observer override |
82 void OnDestructionImminent(AppCacheHost* host) override; | 82 void OnDestructionImminent(AppCacheHost* host) override; |
83 | 83 |
84 // Helpers to instruct a waiting job with what response to | 84 // Helpers to instruct a waiting job with what response to |
85 // deliver for the request we're handling. | 85 // deliver for the request we're handling. |
86 void DeliverAppCachedResponse(const AppCacheEntry& entry, | 86 void DeliverAppCachedResponse(const AppCacheEntry& entry, |
87 int64_t cache_id, | 87 int64_t cache_id, |
88 int64_t group_id, | |
89 const GURL& manifest_url, | 88 const GURL& manifest_url, |
90 bool is_fallback, | 89 bool is_fallback, |
91 const GURL& namespace_entry_url); | 90 const GURL& namespace_entry_url); |
92 void DeliverNetworkResponse(); | 91 void DeliverNetworkResponse(); |
93 void DeliverErrorResponse(); | 92 void DeliverErrorResponse(); |
94 | 93 |
95 // Called just before the request is restarted. Grabs the reason for | 94 // Called just before the request is restarted. Grabs the reason for |
96 // restarting, so can correctly continue to handle the request. | 95 // restarting, so can correctly continue to handle the request. |
97 void OnPrepareToRestart(); | 96 void OnPrepareToRestart(); |
98 | 97 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 int cache_id_; | 190 int cache_id_; |
192 GURL manifest_url_; | 191 GURL manifest_url_; |
193 | 192 |
194 friend class content::AppCacheRequestHandlerTest; | 193 friend class content::AppCacheRequestHandlerTest; |
195 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); | 194 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); |
196 }; | 195 }; |
197 | 196 |
198 } // namespace content | 197 } // namespace content |
199 | 198 |
200 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 199 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ |
OLD | NEW |