| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 // Info about the type of response we found for delivery. | 105 // Info about the type of response we found for delivery. |
| 106 // These are relevant for both main and subresource requests. | 106 // These are relevant for both main and subresource requests. |
| 107 int64 found_group_id_; | 107 int64 found_group_id_; |
| 108 int64 found_cache_id_; | 108 int64 found_cache_id_; |
| 109 AppCacheEntry found_entry_; | 109 AppCacheEntry found_entry_; |
| 110 AppCacheEntry found_fallback_entry_; | 110 AppCacheEntry found_fallback_entry_; |
| 111 GURL found_namespace_entry_url_; | 111 GURL found_namespace_entry_url_; |
| 112 GURL found_manifest_url_; | 112 GURL found_manifest_url_; |
| 113 bool found_network_namespace_; | 113 bool found_network_namespace_; |
| 114 // This is only for subresource requests. |
| 115 bool request_response_found_; |
| 114 | 116 |
| 115 // True if a cache entry this handler attempted to return was | 117 // True if a cache entry this handler attempted to return was |
| 116 // not found in the disk cache. Once set, the handler will take | 118 // not found in the disk cache. Once set, the handler will take |
| 117 // no action on all subsequent intercept opportunities, so the | 119 // no action on all subsequent intercept opportunities, so the |
| 118 // request and any redirects will be handled by the network library. | 120 // request and any redirects will be handled by the network library. |
| 119 bool cache_entry_not_found_; | 121 bool cache_entry_not_found_; |
| 120 | 122 |
| 121 // The job we use to deliver a response. | 123 // The job we use to deliver a response. |
| 122 scoped_refptr<AppCacheURLRequestJob> job_; | 124 scoped_refptr<AppCacheURLRequestJob> job_; |
| 123 | 125 |
| 124 friend class AppCacheRequestHandlerTest; | 126 friend class AppCacheRequestHandlerTest; |
| 125 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); | 127 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); |
| 126 }; | 128 }; |
| 127 | 129 |
| 128 } // namespace appcache | 130 } // namespace appcache |
| 129 | 131 |
| 130 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 132 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ |
| OLD | NEW |