Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: content/browser/appcache/appcache_host.h

Issue 425653002: content: ResourceType cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698