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

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

Issue 16701004: Fix webkit_storage exports definitions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | 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_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 5 #ifndef WEBKIT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_
6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 6 #define WEBKIT_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>
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/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/message_loop/message_loop_proxy.h" 17 #include "base/message_loop/message_loop_proxy.h"
18 #include "webkit/browser/appcache/appcache_database.h" 18 #include "webkit/browser/appcache/appcache_database.h"
19 #include "webkit/browser/appcache/appcache_disk_cache.h" 19 #include "webkit/browser/appcache/appcache_disk_cache.h"
20 #include "webkit/browser/appcache/appcache_storage.h" 20 #include "webkit/browser/appcache/appcache_storage.h"
21 #include "webkit/storage/webkit_storage_export.h" 21 #include "webkit/browser/webkit_storage_browser_export.h"
22 22
23 namespace content { 23 namespace content {
24 class ChromeAppCacheServiceTest; 24 class ChromeAppCacheServiceTest;
25 } 25 }
26 26
27 namespace appcache { 27 namespace appcache {
28 28
29 class AppCacheStorageImpl : public AppCacheStorage { 29 class AppCacheStorageImpl : public AppCacheStorage {
30 public: 30 public:
31 explicit AppCacheStorageImpl(AppCacheService* service); 31 explicit AppCacheStorageImpl(AppCacheService* service);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 scoped_refptr<AppCacheGroup> group, 124 scoped_refptr<AppCacheGroup> group,
125 scoped_refptr<AppCache> newest_cache, 125 scoped_refptr<AppCache> newest_cache,
126 scoped_refptr<DelegateReference> delegate_ref); 126 scoped_refptr<DelegateReference> delegate_ref);
127 127
128 void CallOnMainResponseFound( 128 void CallOnMainResponseFound(
129 DelegateReferenceVector* delegates, 129 DelegateReferenceVector* delegates,
130 const GURL& url, const AppCacheEntry& entry, 130 const GURL& url, const AppCacheEntry& entry,
131 const GURL& namespace_entry_url, const AppCacheEntry& fallback_entry, 131 const GURL& namespace_entry_url, const AppCacheEntry& fallback_entry,
132 int64 cache_id, int64 group_id, const GURL& manifest_url); 132 int64 cache_id, int64 group_id, const GURL& manifest_url);
133 133
134 WEBKIT_STORAGE_EXPORT AppCacheDiskCache* disk_cache(); 134 WEBKIT_STORAGE_BROWSER_EXPORT AppCacheDiskCache* disk_cache();
135 135
136 // The directory in which we place files in the file system. 136 // The directory in which we place files in the file system.
137 base::FilePath cache_directory_; 137 base::FilePath cache_directory_;
138 bool is_incognito_; 138 bool is_incognito_;
139 139
140 // This class operates primarily on the IO thread, but schedules 140 // This class operates primarily on the IO thread, but schedules
141 // its DatabaseTasks on the db thread. Separately, the disk_cache uses 141 // its DatabaseTasks on the db thread. Separately, the disk_cache uses
142 // the cache_thread. 142 // the cache_thread.
143 scoped_refptr<base::MessageLoopProxy> db_thread_; 143 scoped_refptr<base::MessageLoopProxy> db_thread_;
144 scoped_refptr<base::MessageLoopProxy> cache_thread_; 144 scoped_refptr<base::MessageLoopProxy> cache_thread_;
(...skipping 25 matching lines...) Expand all
170 // any tasks on the background database thread. 170 // any tasks on the background database thread.
171 std::deque<base::Closure> pending_simple_tasks_; 171 std::deque<base::Closure> pending_simple_tasks_;
172 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; 172 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_;
173 173
174 friend class content::ChromeAppCacheServiceTest; 174 friend class content::ChromeAppCacheServiceTest;
175 }; 175 };
176 176
177 } // namespace appcache 177 } // namespace appcache
178 178
179 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 179 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/browser/appcache/appcache_storage.h ('k') | webkit/browser/appcache/appcache_update_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698