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

Side by Side Diff: content/browser/appcache/mock_appcache_storage.h

Issue 2902653002: Get main frame and subframe AppCache loads to work. (Closed)
Patch Set: Address review comments Created 3 years, 6 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 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
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
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_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_url_request_job.cc ('k') | content/browser/appcache/mock_appcache_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698