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

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

Issue 7720022: Third-party appcache blocking. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Keeping up to date with trunk. Created 9 years, 3 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
« no previous file with comments | « webkit/appcache/appcache_service.cc ('k') | webkit/appcache/appcache_storage_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // If a load fails the 'response_info' will be NULL. 58 // If a load fails the 'response_info' will be NULL.
59 virtual void OnResponseInfoLoaded( 59 virtual void OnResponseInfoLoaded(
60 AppCacheResponseInfo* response_info, int64 response_id) {} 60 AppCacheResponseInfo* response_info, int64 response_id) {}
61 61
62 // If no response is found, entry.response_id() will be kNoResponseId. 62 // If no response is found, entry.response_id() will be kNoResponseId.
63 // If a response is found, the cache id and manifest url of the 63 // If a response is found, the cache id and manifest url of the
64 // containing cache and group are also returned. 64 // containing cache and group are also returned.
65 virtual void OnMainResponseFound( 65 virtual void OnMainResponseFound(
66 const GURL& url, const AppCacheEntry& entry, 66 const GURL& url, const AppCacheEntry& entry,
67 const GURL& fallback_url, const AppCacheEntry& fallback_entry, 67 const GURL& fallback_url, const AppCacheEntry& fallback_entry,
68 int64 cache_id, const GURL& mainfest_url, 68 int64 cache_id, const GURL& mainfest_url) {}
69 bool was_blocked_by_policy) {}
70 }; 69 };
71 70
72 explicit AppCacheStorage(AppCacheService* service); 71 explicit AppCacheStorage(AppCacheService* service);
73 virtual ~AppCacheStorage(); 72 virtual ~AppCacheStorage();
74 73
75 // Schedules a task to retrieve basic info about all groups and caches 74 // Schedules a task to retrieve basic info about all groups and caches
76 // stored in the system. Upon completion the delegate will be called 75 // stored in the system. Upon completion the delegate will be called
77 // with the results. 76 // with the results.
78 virtual void GetAllInfo(Delegate* delegate) = 0; 77 virtual void GetAllInfo(Delegate* delegate) = 0;
79 78
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, DelegateReferences); 306 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, DelegateReferences);
308 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, UsageMap); 307 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, UsageMap);
309 308
310 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage); 309 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage);
311 }; 310 };
312 311
313 } // namespace appcache 312 } // namespace appcache
314 313
315 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ 314 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_H_
316 315
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_service.cc ('k') | webkit/appcache/appcache_storage_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698