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

Side by Side Diff: content/browser/appcache/appcache_storage_impl.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 (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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url, 66 AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url,
67 int64_t response_id) override; 67 int64_t response_id) override;
68 AppCacheResponseWriter* CreateResponseWriter( 68 AppCacheResponseWriter* CreateResponseWriter(
69 const GURL& manifest_url) override; 69 const GURL& manifest_url) override;
70 AppCacheResponseMetadataWriter* CreateResponseMetadataWriter( 70 AppCacheResponseMetadataWriter* CreateResponseMetadataWriter(
71 int64_t response_id) override; 71 int64_t response_id) override;
72 void DoomResponses(const GURL& manifest_url, 72 void DoomResponses(const GURL& manifest_url,
73 const std::vector<int64_t>& response_ids) override; 73 const std::vector<int64_t>& response_ids) override;
74 void DeleteResponses(const GURL& manifest_url, 74 void DeleteResponses(const GURL& manifest_url,
75 const std::vector<int64_t>& response_ids) override; 75 const std::vector<int64_t>& response_ids) override;
76 bool IsInitialized() override;
76 77
77 private: 78 private:
78 // The AppCacheStorageImpl class methods and datamembers may only be 79 // The AppCacheStorageImpl class methods and datamembers may only be
79 // accessed on the IO thread. This class manufactures seperate DatabaseTasks 80 // accessed on the IO thread. This class manufactures seperate DatabaseTasks
80 // which access the DB on a seperate background thread. 81 // which access the DB on a seperate background thread.
81 class DatabaseTask; 82 class DatabaseTask;
82 class InitTask; 83 class InitTask;
83 class DisableDatabaseTask; 84 class DisableDatabaseTask;
84 class GetAllInfoTask; 85 class GetAllInfoTask;
85 class StoreOrLoadTask; 86 class StoreOrLoadTask;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 std::deque<base::Closure> pending_simple_tasks_; 188 std::deque<base::Closure> pending_simple_tasks_;
188 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; 189 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_;
189 190
190 friend class content::AppCacheStorageImplTest; 191 friend class content::AppCacheStorageImplTest;
191 friend class content::ChromeAppCacheServiceTest; 192 friend class content::ChromeAppCacheServiceTest;
192 }; 193 };
193 194
194 } // namespace content 195 } // namespace content
195 196
196 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 197 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_storage.cc ('k') | content/browser/appcache/appcache_storage_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698