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 <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 bool* found_network_namespace) override; | 65 bool* found_network_namespace) override; |
66 void MarkEntryAsForeign(const GURL& entry_url, int64 cache_id) override; | 66 void MarkEntryAsForeign(const GURL& entry_url, int64 cache_id) override; |
67 void MakeGroupObsolete(AppCacheGroup* group, | 67 void MakeGroupObsolete(AppCacheGroup* group, |
68 Delegate* delegate, | 68 Delegate* delegate, |
69 int response_code) override; | 69 int response_code) override; |
70 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url, | 70 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url, |
71 int64 group_id, | 71 int64 group_id, |
72 int64 response_id) override; | 72 int64 response_id) override; |
73 AppCacheResponseWriter* CreateResponseWriter(const GURL& manifest_url, | 73 AppCacheResponseWriter* CreateResponseWriter(const GURL& manifest_url, |
74 int64 group_id) override; | 74 int64 group_id) override; |
| 75 AppCacheResponseMetadataWriter* CreateResponseMetadataWriter( |
| 76 int64 group_id, |
| 77 int64 response_id) override; |
75 void DoomResponses(const GURL& manifest_url, | 78 void DoomResponses(const GURL& manifest_url, |
76 const std::vector<int64>& response_ids) override; | 79 const std::vector<int64>& response_ids) override; |
77 void DeleteResponses(const GURL& manifest_url, | 80 void DeleteResponses(const GURL& manifest_url, |
78 const std::vector<int64>& response_ids) override; | 81 const std::vector<int64>& response_ids) override; |
79 | 82 |
80 private: | 83 private: |
81 friend class AppCacheRequestHandlerTest; | 84 friend class AppCacheRequestHandlerTest; |
82 friend class AppCacheServiceImplTest; | 85 friend class AppCacheServiceImplTest; |
83 friend class AppCacheUpdateJobTest; | 86 friend class AppCacheUpdateJobTest; |
84 friend class MockAppCacheStorageTest; | 87 friend class MockAppCacheStorageTest; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 StoreExistingGroupExistingCache); | 235 StoreExistingGroupExistingCache); |
233 FRIEND_TEST_ALL_PREFIXES(AppCacheServiceImplTest, | 236 FRIEND_TEST_ALL_PREFIXES(AppCacheServiceImplTest, |
234 DeleteAppCachesForOrigin); | 237 DeleteAppCachesForOrigin); |
235 | 238 |
236 DISALLOW_COPY_AND_ASSIGN(MockAppCacheStorage); | 239 DISALLOW_COPY_AND_ASSIGN(MockAppCacheStorage); |
237 }; | 240 }; |
238 | 241 |
239 } // namespace content | 242 } // namespace content |
240 | 243 |
241 #endif // CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ | 244 #endif // CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ |
OLD | NEW |