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

Side by Side Diff: webkit/appcache/mock_appcache_storage.h

Issue 6727006: Select a more appropiate appcache based on the opener or the parent of the new document. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_MOCK_APPCACHE_STORAGE_H_ 5 #ifndef WEBKIT_APPCACHE_MOCK_APPCACHE_STORAGE_H_
6 #define WEBKIT_APPCACHE_MOCK_APPCACHE_STORAGE_H_ 6 #define WEBKIT_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 16 matching lines...) Expand all
27 class MockAppCacheStorage : public AppCacheStorage { 27 class MockAppCacheStorage : public AppCacheStorage {
28 public: 28 public:
29 explicit MockAppCacheStorage(AppCacheService* service); 29 explicit MockAppCacheStorage(AppCacheService* service);
30 virtual ~MockAppCacheStorage(); 30 virtual ~MockAppCacheStorage();
31 31
32 virtual void GetAllInfo(Delegate* delegate) {} // not implemented 32 virtual void GetAllInfo(Delegate* delegate) {} // not implemented
33 virtual void LoadCache(int64 id, Delegate* delegate); 33 virtual void LoadCache(int64 id, Delegate* delegate);
34 virtual void LoadOrCreateGroup(const GURL& manifest_url, Delegate* delegate); 34 virtual void LoadOrCreateGroup(const GURL& manifest_url, Delegate* delegate);
35 virtual void StoreGroupAndNewestCache( 35 virtual void StoreGroupAndNewestCache(
36 AppCacheGroup* group, AppCache* newest_cache, Delegate* delegate); 36 AppCacheGroup* group, AppCache* newest_cache, Delegate* delegate);
37 virtual void FindResponseForMainRequest(const GURL& url, Delegate* delegate); 37 virtual void FindResponseForMainRequest(
38 const GURL& url, const GURL& preferred_manifest_url, Delegate* delegate);
38 virtual void FindResponseForSubRequest( 39 virtual void FindResponseForSubRequest(
39 AppCache* cache, const GURL& url, 40 AppCache* cache, const GURL& url,
40 AppCacheEntry* found_entry, AppCacheEntry* found_fallback_entry, 41 AppCacheEntry* found_entry, AppCacheEntry* found_fallback_entry,
41 bool * found_network_namespace); 42 bool * found_network_namespace);
42 virtual void MarkEntryAsForeign(const GURL& entry_url, int64 cache_id); 43 virtual void MarkEntryAsForeign(const GURL& entry_url, int64 cache_id);
43 virtual void MakeGroupObsolete(AppCacheGroup* group, Delegate* delegate); 44 virtual void MakeGroupObsolete(AppCacheGroup* group, Delegate* delegate);
44 virtual AppCacheResponseReader* CreateResponseReader( 45 virtual AppCacheResponseReader* CreateResponseReader(
45 const GURL& manifest_url, int64 response_id); 46 const GURL& manifest_url, int64 response_id);
46 virtual AppCacheResponseWriter* CreateResponseWriter(const GURL& origin); 47 virtual AppCacheResponseWriter* CreateResponseWriter(const GURL& origin);
47 virtual void DoomResponses( 48 virtual void DoomResponses(
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest, StoreExistingGroup); 178 FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest, StoreExistingGroup);
178 FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest, 179 FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest,
179 StoreExistingGroupExistingCache); 180 StoreExistingGroupExistingCache);
180 181
181 DISALLOW_COPY_AND_ASSIGN(MockAppCacheStorage); 182 DISALLOW_COPY_AND_ASSIGN(MockAppCacheStorage);
182 }; 183 };
183 184
184 } // namespace appcache 185 } // namespace appcache
185 186
186 #endif // WEBKIT_APPCACHE_MOCK_APPCACHE_STORAGE_H_ 187 #endif // WEBKIT_APPCACHE_MOCK_APPCACHE_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698