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

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

Issue 11230022: webkit: Merge build target 'appcache' to 'webkit_storage' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 8 years, 2 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
« no previous file with comments | « webkit/appcache/appcache_storage.h ('k') | webkit/appcache/appcache_update_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_APPCACHE_STORAGE_IMPL_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_
6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 6 #define WEBKIT_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>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/message_loop_proxy.h" 17 #include "base/message_loop_proxy.h"
18 #include "webkit/appcache/appcache_database.h" 18 #include "webkit/appcache/appcache_database.h"
19 #include "webkit/appcache/appcache_disk_cache.h" 19 #include "webkit/appcache/appcache_disk_cache.h"
20 #include "webkit/appcache/appcache_export.h"
21 #include "webkit/appcache/appcache_storage.h" 20 #include "webkit/appcache/appcache_storage.h"
21 #include "webkit/storage/webkit_storage_export.h"
22 22
23 namespace appcache { 23 namespace appcache {
24 24
25 class AppCacheStorageImpl : public AppCacheStorage { 25 class AppCacheStorageImpl : public AppCacheStorage {
26 public: 26 public:
27 explicit AppCacheStorageImpl(AppCacheService* service); 27 explicit AppCacheStorageImpl(AppCacheService* service);
28 virtual ~AppCacheStorageImpl(); 28 virtual ~AppCacheStorageImpl();
29 29
30 void Initialize(const FilePath& cache_directory, 30 void Initialize(const FilePath& cache_directory,
31 base::MessageLoopProxy* db_thread, 31 base::MessageLoopProxy* db_thread,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 scoped_refptr<AppCacheGroup> group, 120 scoped_refptr<AppCacheGroup> group,
121 scoped_refptr<AppCache> newest_cache, 121 scoped_refptr<AppCache> newest_cache,
122 scoped_refptr<DelegateReference> delegate_ref); 122 scoped_refptr<DelegateReference> delegate_ref);
123 123
124 void CallOnMainResponseFound( 124 void CallOnMainResponseFound(
125 DelegateReferenceVector* delegates, 125 DelegateReferenceVector* delegates,
126 const GURL& url, const AppCacheEntry& entry, 126 const GURL& url, const AppCacheEntry& entry,
127 const GURL& namespace_entry_url, const AppCacheEntry& fallback_entry, 127 const GURL& namespace_entry_url, const AppCacheEntry& fallback_entry,
128 int64 cache_id, int64 group_id, const GURL& manifest_url); 128 int64 cache_id, int64 group_id, const GURL& manifest_url);
129 129
130 APPCACHE_EXPORT AppCacheDiskCache* disk_cache(); 130 WEBKIT_STORAGE_EXPORT AppCacheDiskCache* disk_cache();
131 131
132 // The directory in which we place files in the file system. 132 // The directory in which we place files in the file system.
133 FilePath cache_directory_; 133 FilePath cache_directory_;
134 bool is_incognito_; 134 bool is_incognito_;
135 135
136 // This class operates primarily on the IO thread, but schedules 136 // This class operates primarily on the IO thread, but schedules
137 // its DatabaseTasks on the db thread. Separately, the disk_cache uses 137 // its DatabaseTasks on the db thread. Separately, the disk_cache uses
138 // the cache_thread. 138 // the cache_thread.
139 scoped_refptr<base::MessageLoopProxy> db_thread_; 139 scoped_refptr<base::MessageLoopProxy> db_thread_;
140 scoped_refptr<base::MessageLoopProxy> cache_thread_; 140 scoped_refptr<base::MessageLoopProxy> cache_thread_;
(...skipping 25 matching lines...) Expand all
166 // any tasks on the background database thread. 166 // any tasks on the background database thread.
167 std::deque<base::Closure> pending_simple_tasks_; 167 std::deque<base::Closure> pending_simple_tasks_;
168 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; 168 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_;
169 169
170 friend class ChromeAppCacheServiceTest; 170 friend class ChromeAppCacheServiceTest;
171 }; 171 };
172 172
173 } // namespace appcache 173 } // namespace appcache
174 174
175 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 175 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_storage.h ('k') | webkit/appcache/appcache_update_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698