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

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

Issue 8949001: Fix some loose ends around recently introduced AppCache INTERCEPT namespaces (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_STORAGE_H_
6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 AppCacheGroup* group, AppCache* newest_cache, bool success, 53 AppCacheGroup* group, AppCache* newest_cache, bool success,
54 bool would_exceed_quota) {} 54 bool would_exceed_quota) {}
55 55
56 // If the operation fails, success will be false. 56 // If the operation fails, success will be false.
57 virtual void OnGroupMadeObsolete(AppCacheGroup* group, bool success) {} 57 virtual void OnGroupMadeObsolete(AppCacheGroup* group, bool success) {}
58 58
59 // If a load fails the 'response_info' will be NULL. 59 // If a load fails the 'response_info' will be NULL.
60 virtual void OnResponseInfoLoaded( 60 virtual void OnResponseInfoLoaded(
61 AppCacheResponseInfo* response_info, int64 response_id) {} 61 AppCacheResponseInfo* response_info, int64 response_id) {}
62 62
63 // If no response is found, entry.response_id() will be kNoResponseId. 63 // If no response is found, entry.response_id() and
64 // and fallback_entry.response_id() will be kNoResponseId.
jennb 2012/01/04 22:12:14 extra 'and'
65 // If the response is the entry for an intercept or fallback
66 // namespace, the url of the namespece entry is returned.
64 // If a response is found, the cache id and manifest url of the 67 // If a response is found, the cache id and manifest url of the
65 // containing cache and group are also returned. 68 // containing cache and group are also returned.
66 virtual void OnMainResponseFound( 69 virtual void OnMainResponseFound(
67 const GURL& url, const AppCacheEntry& entry, 70 const GURL& url, const AppCacheEntry& entry,
68 const GURL& fallback_url, const AppCacheEntry& fallback_entry, 71 const GURL& namespace_entry_url, const AppCacheEntry& fallback_entry,
69 int64 cache_id, int64 group_id, const GURL& mainfest_url) {} 72 int64 cache_id, int64 group_id, const GURL& mainfest_url) {}
70 }; 73 };
71 74
72 explicit AppCacheStorage(AppCacheService* service); 75 explicit AppCacheStorage(AppCacheService* service);
73 virtual ~AppCacheStorage(); 76 virtual ~AppCacheStorage();
74 77
75 // Schedules a task to retrieve basic info about all groups and caches 78 // Schedules a task to retrieve basic info about all groups and caches
76 // stored in the system. Upon completion the delegate will be called 79 // stored in the system. Upon completion the delegate will be called
77 // with the results. 80 // with the results.
78 virtual void GetAllInfo(Delegate* delegate) = 0; 81 virtual void GetAllInfo(Delegate* delegate) = 0;
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, DelegateReferences); 312 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, DelegateReferences);
310 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, UsageMap); 313 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, UsageMap);
311 314
312 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage); 315 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage);
313 }; 316 };
314 317
315 } // namespace appcache 318 } // namespace appcache
316 319
317 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ 320 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_H_
318 321
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_request_handler_unittest.cc ('k') | webkit/appcache/appcache_storage_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698