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

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

Issue 1600002: Indicate in the tab UI if appcache creation was blocked by privacy settings. (Closed)
Patch Set: updates Created 10 years, 8 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
OLDNEW
1 // Copyright (c) 2009 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_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
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // If a load fails the 'response_info' will be NULL. 56 // If a load fails the 'response_info' will be NULL.
57 virtual void OnResponseInfoLoaded( 57 virtual void OnResponseInfoLoaded(
58 AppCacheResponseInfo* response_info, int64 response_id) {} 58 AppCacheResponseInfo* response_info, int64 response_id) {}
59 59
60 // If no response is found, entry.response_id() will be kNoResponseId. 60 // If no response is found, entry.response_id() will be kNoResponseId.
61 // If a response is found, the cache id and manifest url of the 61 // If a response is found, the cache id and manifest url of the
62 // containing cache and group are also returned. 62 // containing cache and group are also returned.
63 virtual void OnMainResponseFound( 63 virtual void OnMainResponseFound(
64 const GURL& url, const AppCacheEntry& entry, 64 const GURL& url, const AppCacheEntry& entry,
65 const AppCacheEntry& fallback_entry, 65 const AppCacheEntry& fallback_entry,
66 int64 cache_id, const GURL& mainfest_url) {} 66 int64 cache_id, const GURL& mainfest_url,
67 bool was_blocked_by_policy) {}
67 }; 68 };
68 69
69 explicit AppCacheStorage(AppCacheService* service); 70 explicit AppCacheStorage(AppCacheService* service);
70 virtual ~AppCacheStorage(); 71 virtual ~AppCacheStorage();
71 72
72 // Schedules a task to retrieve basic info about all groups and caches 73 // Schedules a task to retrieve basic info about all groups and caches
73 // stored in the system. Upon completion the delegate will be called 74 // stored in the system. Upon completion the delegate will be called
74 // with the results. 75 // with the results.
75 virtual void GetAllInfo(Delegate* delegate) = 0; 76 virtual void GetAllInfo(Delegate* delegate) = 0;
76 77
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 static const int64 kUnitializedId; 297 static const int64 kUnitializedId;
297 298
298 FRIEND_TEST(AppCacheStorageTest, DelegateReferences); 299 FRIEND_TEST(AppCacheStorageTest, DelegateReferences);
299 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage); 300 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage);
300 }; 301 };
301 302
302 } // namespace appcache 303 } // namespace appcache
303 304
304 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ 305 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_H_
305 306
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698