| 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_HOST_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_ |
| 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 const GURL& preferred_manifest_url() const { | 103 const GURL& preferred_manifest_url() const { |
| 104 return preferred_manifest_url_; | 104 return preferred_manifest_url_; |
| 105 } | 105 } |
| 106 void set_preferred_manifest_url(const GURL& url) { | 106 void set_preferred_manifest_url(const GURL& url) { |
| 107 preferred_manifest_url_ = url; | 107 preferred_manifest_url_ = url; |
| 108 } | 108 } |
| 109 | 109 |
| 110 // Support for loading resources out of the appcache. | 110 // Support for loading resources out of the appcache. |
| 111 // May return NULL if the request isn't subject to retrieval from an appache. | 111 // May return NULL if the request isn't subject to retrieval from an appache. |
| 112 AppCacheRequestHandler* CreateRequestHandler( | 112 AppCacheRequestHandler* CreateRequestHandler( |
| 113 net::URLRequest* request, ResourceType::Type resource_type); | 113 net::URLRequest* request, |
| 114 ResourceType resource_type); |
| 114 | 115 |
| 115 // Support for devtools inspecting appcache resources. | 116 // Support for devtools inspecting appcache resources. |
| 116 void GetResourceList(std::vector<AppCacheResourceInfo>* resource_infos); | 117 void GetResourceList(std::vector<AppCacheResourceInfo>* resource_infos); |
| 117 | 118 |
| 118 // Breaks any existing association between this host and a cache. | 119 // Breaks any existing association between this host and a cache. |
| 119 // 'manifest_url' is sent to DevTools as the manifest url that could have | 120 // 'manifest_url' is sent to DevTools as the manifest url that could have |
| 120 // been associated before or could be associated later with this host. | 121 // been associated before or could be associated later with this host. |
| 121 // Associations are broken either thru the cache selection algorithm | 122 // Associations are broken either thru the cache selection algorithm |
| 122 // implemented in this class, or by the update algorithm (see | 123 // implemented in this class, or by the update algorithm (see |
| 123 // AppCacheUpdateJob). | 124 // AppCacheUpdateJob). |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectCacheAllowed); | 326 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectCacheAllowed); |
| 326 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectCacheBlocked); | 327 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectCacheBlocked); |
| 327 FRIEND_TEST_ALL_PREFIXES(content::AppCacheTest, CleanupUnusedCache); | 328 FRIEND_TEST_ALL_PREFIXES(content::AppCacheTest, CleanupUnusedCache); |
| 328 | 329 |
| 329 DISALLOW_COPY_AND_ASSIGN(AppCacheHost); | 330 DISALLOW_COPY_AND_ASSIGN(AppCacheHost); |
| 330 }; | 331 }; |
| 331 | 332 |
| 332 } // namespace content | 333 } // namespace content |
| 333 | 334 |
| 334 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_ | 335 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_ |
| OLD | NEW |