OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ |
6 #define CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ | 6 #define CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 const GURL& url, | 65 const GURL& url, |
66 AppCacheEntry* found_entry, | 66 AppCacheEntry* found_entry, |
67 AppCacheEntry* found_fallback_entry, | 67 AppCacheEntry* found_fallback_entry, |
68 bool* found_network_namespace) override; | 68 bool* found_network_namespace) override; |
69 void MarkEntryAsForeign(const GURL& entry_url, int64_t cache_id) override; | 69 void MarkEntryAsForeign(const GURL& entry_url, int64_t cache_id) override; |
70 void MakeGroupObsolete(AppCacheGroup* group, | 70 void MakeGroupObsolete(AppCacheGroup* group, |
71 Delegate* delegate, | 71 Delegate* delegate, |
72 int response_code) override; | 72 int response_code) override; |
73 void StoreEvictionTimes(AppCacheGroup* group) override; | 73 void StoreEvictionTimes(AppCacheGroup* group) override; |
74 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url, | 74 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url, |
75 int64_t group_id, | |
76 int64_t response_id) override; | 75 int64_t response_id) override; |
77 AppCacheResponseWriter* CreateResponseWriter(const GURL& manifest_url, | 76 AppCacheResponseWriter* CreateResponseWriter( |
78 int64_t group_id) override; | 77 const GURL& manifest_url) override; |
79 AppCacheResponseMetadataWriter* CreateResponseMetadataWriter( | 78 AppCacheResponseMetadataWriter* CreateResponseMetadataWriter( |
80 int64_t group_id, | |
81 int64_t response_id) override; | 79 int64_t response_id) override; |
82 void DoomResponses(const GURL& manifest_url, | 80 void DoomResponses(const GURL& manifest_url, |
83 const std::vector<int64_t>& response_ids) override; | 81 const std::vector<int64_t>& response_ids) override; |
84 void DeleteResponses(const GURL& manifest_url, | 82 void DeleteResponses(const GURL& manifest_url, |
85 const std::vector<int64_t>& response_ids) override; | 83 const std::vector<int64_t>& response_ids) override; |
86 | 84 |
87 private: | 85 private: |
88 friend class AppCacheRequestHandlerTest; | 86 friend class AppCacheRequestHandlerTest; |
89 friend class AppCacheServiceImplTest; | 87 friend class AppCacheServiceImplTest; |
90 friend class AppCacheUpdateJobTest; | 88 friend class AppCacheUpdateJobTest; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 StoreExistingGroupExistingCache); | 239 StoreExistingGroupExistingCache); |
242 FRIEND_TEST_ALL_PREFIXES(AppCacheServiceImplTest, | 240 FRIEND_TEST_ALL_PREFIXES(AppCacheServiceImplTest, |
243 DeleteAppCachesForOrigin); | 241 DeleteAppCachesForOrigin); |
244 | 242 |
245 DISALLOW_COPY_AND_ASSIGN(MockAppCacheStorage); | 243 DISALLOW_COPY_AND_ASSIGN(MockAppCacheStorage); |
246 }; | 244 }; |
247 | 245 |
248 } // namespace content | 246 } // namespace content |
249 | 247 |
250 #endif // CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ | 248 #endif // CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ |
OLD | NEW |