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

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

Issue 932643002: Introduce AppCacheResponseMetadataWriter to support metadata caching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated michaeln's comment Created 5 years, 10 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 (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 CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool* found_network_namespace) override; 57 bool* found_network_namespace) override;
58 void MarkEntryAsForeign(const GURL& entry_url, int64 cache_id) override; 58 void MarkEntryAsForeign(const GURL& entry_url, int64 cache_id) override;
59 void MakeGroupObsolete(AppCacheGroup* group, 59 void MakeGroupObsolete(AppCacheGroup* group,
60 Delegate* delegate, 60 Delegate* delegate,
61 int response_code) override; 61 int response_code) override;
62 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url, 62 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url,
63 int64 group_id, 63 int64 group_id,
64 int64 response_id) override; 64 int64 response_id) override;
65 AppCacheResponseWriter* CreateResponseWriter(const GURL& manifest_url, 65 AppCacheResponseWriter* CreateResponseWriter(const GURL& manifest_url,
66 int64 group_id) override; 66 int64 group_id) override;
67 AppCacheResponseMetadataWriter* CreateResponseMetadataWriter(
68 int64 group_id,
69 int64 response_id) override;
67 void DoomResponses(const GURL& manifest_url, 70 void DoomResponses(const GURL& manifest_url,
68 const std::vector<int64>& response_ids) override; 71 const std::vector<int64>& response_ids) override;
69 void DeleteResponses(const GURL& manifest_url, 72 void DeleteResponses(const GURL& manifest_url,
70 const std::vector<int64>& response_ids) override; 73 const std::vector<int64>& response_ids) override;
71 74
72 private: 75 private:
73 // The AppCacheStorageImpl class methods and datamembers may only be 76 // The AppCacheStorageImpl class methods and datamembers may only be
74 // accessed on the IO thread. This class manufactures seperate DatabaseTasks 77 // accessed on the IO thread. This class manufactures seperate DatabaseTasks
75 // which access the DB on a seperate background thread. 78 // which access the DB on a seperate background thread.
76 class DatabaseTask; 79 class DatabaseTask;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 std::deque<base::Closure> pending_simple_tasks_; 177 std::deque<base::Closure> pending_simple_tasks_;
175 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; 178 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_;
176 179
177 friend class content::AppCacheStorageImplTest; 180 friend class content::AppCacheStorageImplTest;
178 friend class content::ChromeAppCacheServiceTest; 181 friend class content::ChromeAppCacheServiceTest;
179 }; 182 };
180 183
181 } // namespace content 184 } // namespace content
182 185
183 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 186 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_storage.h ('k') | content/browser/appcache/appcache_storage_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698