| 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 WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ |
| 6 #define WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/supports_user_data.h" | 9 #include "base/supports_user_data.h" |
| 10 #include "webkit/appcache/appcache_entry.h" | 10 #include "webkit/appcache/appcache_entry.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 GURL found_namespace_entry_url_; | 118 GURL found_namespace_entry_url_; |
| 119 GURL found_manifest_url_; | 119 GURL found_manifest_url_; |
| 120 bool found_network_namespace_; | 120 bool found_network_namespace_; |
| 121 | 121 |
| 122 // True if a cache entry this handler attempted to return was | 122 // True if a cache entry this handler attempted to return was |
| 123 // not found in the disk cache. Once set, the handler will take | 123 // not found in the disk cache. Once set, the handler will take |
| 124 // no action on all subsequent intercept opportunities, so the | 124 // no action on all subsequent intercept opportunities, so the |
| 125 // request and any redirects will be handled by the network library. | 125 // request and any redirects will be handled by the network library. |
| 126 bool cache_entry_not_found_; | 126 bool cache_entry_not_found_; |
| 127 | 127 |
| 128 // True if this->MaybeLoadResource(...) has been called in the past. |
| 129 bool maybe_load_resource_executed_; |
| 130 |
| 128 // The job we use to deliver a response. | 131 // The job we use to deliver a response. |
| 129 scoped_refptr<AppCacheURLRequestJob> job_; | 132 scoped_refptr<AppCacheURLRequestJob> job_; |
| 130 | 133 |
| 131 friend class AppCacheRequestHandlerTest; | 134 friend class AppCacheRequestHandlerTest; |
| 132 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); | 135 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); |
| 133 }; | 136 }; |
| 134 | 137 |
| 135 } // namespace appcache | 138 } // namespace appcache |
| 136 | 139 |
| 137 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 140 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ |
| OLD | NEW |