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

Side by Side Diff: webkit/database/database_quota_client.h

Issue 11274003: webkit: Merge 'database' and 'quota' to 'webkit_storage' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More EXPORT for Win Created 8 years, 1 month 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/database/database_connections.h ('k') | webkit/database/database_tracker.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_DATABASE_DATABASE_QUOTA_CLIENT_H_ 5 #ifndef WEBKIT_DATABASE_DATABASE_QUOTA_CLIENT_H_
6 #define WEBKIT_DATABASE_DATABASE_QUOTA_CLIENT_H_ 6 #define WEBKIT_DATABASE_DATABASE_QUOTA_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/message_loop_proxy.h" 12 #include "base/message_loop_proxy.h"
13 #include "webkit/quota/quota_client.h" 13 #include "webkit/quota/quota_client.h"
14 #include "webkit/quota/quota_types.h" 14 #include "webkit/quota/quota_types.h"
15 #include "webkit/storage/webkit_storage_export.h"
15 16
16 namespace webkit_database { 17 namespace webkit_database {
17 18
18 class DatabaseTracker; 19 class DatabaseTracker;
19 20
20 // A QuotaClient implementation to integrate WebSQLDatabases 21 // A QuotaClient implementation to integrate WebSQLDatabases
21 // with the quota management system. This interface is used 22 // with the quota management system. This interface is used
22 // on the IO thread by the quota manager. 23 // on the IO thread by the quota manager.
23 class DatabaseQuotaClient : public quota::QuotaClient { 24 class WEBKIT_STORAGE_EXPORT_PRIVATE DatabaseQuotaClient
25 : public quota::QuotaClient {
24 public: 26 public:
25 DatabaseQuotaClient( 27 DatabaseQuotaClient(
26 base::MessageLoopProxy* tracker_thread, 28 base::MessageLoopProxy* tracker_thread,
27 DatabaseTracker* tracker); 29 DatabaseTracker* tracker);
28 virtual ~DatabaseQuotaClient(); 30 virtual ~DatabaseQuotaClient();
29 31
30 // QuotaClient method overrides 32 // QuotaClient method overrides
31 virtual ID id() const OVERRIDE; 33 virtual ID id() const OVERRIDE;
32 virtual void OnQuotaManagerDestroyed() OVERRIDE; 34 virtual void OnQuotaManagerDestroyed() OVERRIDE;
33 virtual void GetOriginUsage(const GURL& origin_url, 35 virtual void GetOriginUsage(const GURL& origin_url,
(...skipping 10 matching lines...) Expand all
44 private: 46 private:
45 scoped_refptr<base::MessageLoopProxy> db_tracker_thread_; 47 scoped_refptr<base::MessageLoopProxy> db_tracker_thread_;
46 scoped_refptr<DatabaseTracker> db_tracker_; // only used on its thread 48 scoped_refptr<DatabaseTracker> db_tracker_; // only used on its thread
47 49
48 DISALLOW_COPY_AND_ASSIGN(DatabaseQuotaClient); 50 DISALLOW_COPY_AND_ASSIGN(DatabaseQuotaClient);
49 }; 51 };
50 52
51 } // namespace webkit_database 53 } // namespace webkit_database
52 54
53 #endif // WEBKIT_DATABASE_DATABASE_QUOTA_CLIENT_H_ 55 #endif // WEBKIT_DATABASE_DATABASE_QUOTA_CLIENT_H_
OLDNEW
« no previous file with comments | « webkit/database/database_connections.h ('k') | webkit/database/database_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698