| OLD | NEW |
| 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_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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 // If a load fails the 'response_info' will be NULL. | 57 // If a load fails the 'response_info' will be NULL. |
| 58 virtual void OnResponseInfoLoaded( | 58 virtual void OnResponseInfoLoaded( |
| 59 AppCacheResponseInfo* response_info, int64 response_id) {} | 59 AppCacheResponseInfo* response_info, int64 response_id) {} |
| 60 | 60 |
| 61 // If no response is found, entry.response_id() will be kNoResponseId. | 61 // If no response is found, entry.response_id() will be kNoResponseId. |
| 62 // If a response is found, the cache id and manifest url of the | 62 // If a response is found, the cache id and manifest url of the |
| 63 // containing cache and group are also returned. | 63 // containing cache and group are also returned. |
| 64 virtual void OnMainResponseFound( | 64 virtual void OnMainResponseFound( |
| 65 const GURL& url, const AppCacheEntry& entry, | 65 const GURL& url, const AppCacheEntry& entry, |
| 66 const AppCacheEntry& fallback_entry, | 66 const GURL& fallback_url, const AppCacheEntry& fallback_entry, |
| 67 int64 cache_id, const GURL& mainfest_url, | 67 int64 cache_id, const GURL& mainfest_url, |
| 68 bool was_blocked_by_policy) {} | 68 bool was_blocked_by_policy) {} |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 explicit AppCacheStorage(AppCacheService* service); | 71 explicit AppCacheStorage(AppCacheService* service); |
| 72 virtual ~AppCacheStorage(); | 72 virtual ~AppCacheStorage(); |
| 73 | 73 |
| 74 // 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 |
| 75 // stored in the system. Upon completion the delegate will be called | 75 // stored in the system. Upon completion the delegate will be called |
| 76 // with the results. | 76 // with the results. |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 303 |
| 304 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, DelegateReferences); | 304 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, DelegateReferences); |
| 305 | 305 |
| 306 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage); | 306 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage); |
| 307 }; | 307 }; |
| 308 | 308 |
| 309 } // namespace appcache | 309 } // namespace appcache |
| 310 | 310 |
| 311 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ | 311 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ |
| 312 | 312 |
| OLD | NEW |