| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url, | 74 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url, |
| 75 int64_t response_id) override; | 75 int64_t response_id) override; |
| 76 AppCacheResponseWriter* CreateResponseWriter( | 76 AppCacheResponseWriter* CreateResponseWriter( |
| 77 const GURL& manifest_url) override; | 77 const GURL& manifest_url) override; |
| 78 AppCacheResponseMetadataWriter* CreateResponseMetadataWriter( | 78 AppCacheResponseMetadataWriter* CreateResponseMetadataWriter( |
| 79 int64_t response_id) override; | 79 int64_t response_id) override; |
| 80 void DoomResponses(const GURL& manifest_url, | 80 void DoomResponses(const GURL& manifest_url, |
| 81 const std::vector<int64_t>& response_ids) override; | 81 const std::vector<int64_t>& response_ids) override; |
| 82 void DeleteResponses(const GURL& manifest_url, | 82 void DeleteResponses(const GURL& manifest_url, |
| 83 const std::vector<int64_t>& response_ids) override; | 83 const std::vector<int64_t>& response_ids) override; |
| 84 bool IsInitialized() override; |
| 84 | 85 |
| 85 private: | 86 private: |
| 86 friend class AppCacheRequestHandlerTest; | 87 friend class AppCacheRequestHandlerTest; |
| 87 friend class AppCacheServiceImplTest; | 88 friend class AppCacheServiceImplTest; |
| 88 friend class AppCacheUpdateJobTest; | 89 friend class AppCacheUpdateJobTest; |
| 89 friend class MockAppCacheStorageTest; | 90 friend class MockAppCacheStorageTest; |
| 90 | 91 |
| 91 typedef base::hash_map<int64_t, scoped_refptr<AppCache>> StoredCacheMap; | 92 typedef base::hash_map<int64_t, scoped_refptr<AppCache>> StoredCacheMap; |
| 92 typedef std::map<GURL, scoped_refptr<AppCacheGroup> > StoredGroupMap; | 93 typedef std::map<GURL, scoped_refptr<AppCacheGroup> > StoredGroupMap; |
| 93 typedef std::set<int64_t> DoomedResponseIds; | 94 typedef std::set<int64_t> DoomedResponseIds; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 StoreExistingGroupExistingCache); | 240 StoreExistingGroupExistingCache); |
| 240 FRIEND_TEST_ALL_PREFIXES(AppCacheServiceImplTest, | 241 FRIEND_TEST_ALL_PREFIXES(AppCacheServiceImplTest, |
| 241 DeleteAppCachesForOrigin); | 242 DeleteAppCachesForOrigin); |
| 242 | 243 |
| 243 DISALLOW_COPY_AND_ASSIGN(MockAppCacheStorage); | 244 DISALLOW_COPY_AND_ASSIGN(MockAppCacheStorage); |
| 244 }; | 245 }; |
| 245 | 246 |
| 246 } // namespace content | 247 } // namespace content |
| 247 | 248 |
| 248 #endif // CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ | 249 #endif // CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ |
| OLD | NEW |