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

Side by Side Diff: webkit/browser/quota/quota_manager_proxy.h

Issue 498273002: Rename storage-related export macros and build targets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « webkit/browser/quota/quota_manager.h ('k') | webkit/browser/quota/quota_task.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_QUOTA_QUOTA_MANAGER_PROXY_H_ 5 #ifndef WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_PROXY_H_
6 #define WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_PROXY_H_ 6 #define WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/sequenced_task_runner_helpers.h" 14 #include "base/sequenced_task_runner_helpers.h"
15 #include "webkit/browser/quota/quota_callbacks.h" 15 #include "webkit/browser/quota/quota_callbacks.h"
16 #include "webkit/browser/quota/quota_client.h" 16 #include "webkit/browser/quota/quota_client.h"
17 #include "webkit/browser/quota/quota_database.h" 17 #include "webkit/browser/quota/quota_database.h"
18 #include "webkit/browser/quota/quota_manager.h" 18 #include "webkit/browser/quota/quota_manager.h"
19 #include "webkit/browser/quota/quota_task.h" 19 #include "webkit/browser/quota/quota_task.h"
20 #include "webkit/browser/quota/special_storage_policy.h" 20 #include "webkit/browser/quota/special_storage_policy.h"
21 #include "webkit/browser/webkit_storage_browser_export.h" 21 #include "webkit/browser/storage_export.h"
22 22
23 namespace base { 23 namespace base {
24 class SequencedTaskRunner; 24 class SequencedTaskRunner;
25 class SingleThreadTaskRunner; 25 class SingleThreadTaskRunner;
26 } 26 }
27 27
28 namespace storage { 28 namespace storage {
29 29
30 // The proxy may be called and finally released on any thread. 30 // The proxy may be called and finally released on any thread.
31 class WEBKIT_STORAGE_BROWSER_EXPORT QuotaManagerProxy 31 class STORAGE_EXPORT QuotaManagerProxy
32 : public base::RefCountedThreadSafe<QuotaManagerProxy> { 32 : public base::RefCountedThreadSafe<QuotaManagerProxy> {
33 public: 33 public:
34 typedef QuotaManager::GetUsageAndQuotaCallback 34 typedef QuotaManager::GetUsageAndQuotaCallback
35 GetUsageAndQuotaCallback; 35 GetUsageAndQuotaCallback;
36 36
37 virtual void RegisterClient(QuotaClient* client); 37 virtual void RegisterClient(QuotaClient* client);
38 virtual void NotifyStorageAccessed(QuotaClient::ID client_id, 38 virtual void NotifyStorageAccessed(QuotaClient::ID client_id,
39 const GURL& origin, 39 const GURL& origin,
40 StorageType type); 40 StorageType type);
41 virtual void NotifyStorageModified(QuotaClient::ID client_id, 41 virtual void NotifyStorageModified(QuotaClient::ID client_id,
(...skipping 27 matching lines...) Expand all
69 69
70 QuotaManager* manager_; // only accessed on the io thread 70 QuotaManager* manager_; // only accessed on the io thread
71 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; 71 scoped_refptr<base::SingleThreadTaskRunner> io_thread_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); 73 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy);
74 }; 74 };
75 75
76 } // namespace storage 76 } // namespace storage
77 77
78 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_PROXY_H_ 78 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_PROXY_H_
OLDNEW
« no previous file with comments | « webkit/browser/quota/quota_manager.h ('k') | webkit/browser/quota/quota_task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698