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

Side by Side Diff: webkit/appcache/appcache_host.h

Issue 3009005: Chrome side of changes required to populate appcache resource list.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_HOST_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_HOST_H_
6 #define WEBKIT_APPCACHE_APPCACHE_HOST_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_HOST_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void StartUpdateWithCallback(StartUpdateCallback* callback, 67 void StartUpdateWithCallback(StartUpdateCallback* callback,
68 void* callback_param); 68 void* callback_param);
69 void SwapCacheWithCallback(SwapCacheCallback* callback, 69 void SwapCacheWithCallback(SwapCacheCallback* callback,
70 void* callback_param); 70 void* callback_param);
71 71
72 // Support for loading resources out of the appcache. 72 // Support for loading resources out of the appcache.
73 // May return NULL if the request isn't subject to retrieval from an appache. 73 // May return NULL if the request isn't subject to retrieval from an appache.
74 AppCacheRequestHandler* CreateRequestHandler( 74 AppCacheRequestHandler* CreateRequestHandler(
75 URLRequest* request, ResourceType::Type resource_type); 75 URLRequest* request, ResourceType::Type resource_type);
76 76
77 // Support for devtools inspecting appcache resources.
78 void GetResourceList(std::vector<AppCacheResourceInfo>* resource_infos);
79
77 // Establishes an association between this host and a cache. 'cache' may be 80 // Establishes an association between this host and a cache. 'cache' may be
78 // NULL to break any existing association. Associations are established 81 // NULL to break any existing association. Associations are established
79 // either thru the cache selection algorithm implemented (in this class), 82 // either thru the cache selection algorithm implemented (in this class),
80 // or by the update algorithm (see AppCacheUpdateJob). 83 // or by the update algorithm (see AppCacheUpdateJob).
81 void AssociateCache(AppCache* cache); 84 void AssociateCache(AppCache* cache);
82 85
83 // Adds a reference to the newest complete cache in a group, unless it's the 86 // Adds a reference to the newest complete cache in a group, unless it's the
84 // same as the cache that is currently associated with the host. 87 // same as the cache that is currently associated with the host.
85 void SetSwappableCache(AppCacheGroup* group); 88 void SetSwappableCache(AppCacheGroup* group);
86 89
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 FRIEND_TEST(AppCacheHostTest, FailedGroupLoad); 217 FRIEND_TEST(AppCacheHostTest, FailedGroupLoad);
215 FRIEND_TEST(AppCacheHostTest, SetSwappableCache); 218 FRIEND_TEST(AppCacheHostTest, SetSwappableCache);
216 FRIEND_TEST(AppCacheHostTest, ForDedicatedWorker); 219 FRIEND_TEST(AppCacheHostTest, ForDedicatedWorker);
217 FRIEND_TEST(AppCacheGroupTest, QueueUpdate); 220 FRIEND_TEST(AppCacheGroupTest, QueueUpdate);
218 DISALLOW_COPY_AND_ASSIGN(AppCacheHost); 221 DISALLOW_COPY_AND_ASSIGN(AppCacheHost);
219 }; 222 };
220 223
221 } // namespace appcache 224 } // namespace appcache
222 225
223 #endif // WEBKIT_APPCACHE_APPCACHE_HOST_H_ 226 #endif // WEBKIT_APPCACHE_APPCACHE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698