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

Side by Side Diff: content/browser/in_process_webkit/indexed_db_quota_client.h

Issue 8082019: more content exports needed for unit_tests and browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert export of browser_accessibility_win for now Created 9 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
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_BROWER_IN_PROCESS_WEBKIT_QUOTA_CLIENT_H_ 5 #ifndef CONTENT_BROWER_IN_PROCESS_WEBKIT_QUOTA_CLIENT_H_
6 #define CONTENT_BROWER_IN_PROCESS_WEBKIT_QUOTA_CLIENT_H_ 6 #define CONTENT_BROWER_IN_PROCESS_WEBKIT_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 "content/common/content_client.h"
jam 2011/09/30 22:05:30 I think you meant content_export?
13 #include "webkit/quota/quota_client.h" 14 #include "webkit/quota/quota_client.h"
14 #include "webkit/quota/quota_task.h" 15 #include "webkit/quota/quota_task.h"
15 #include "webkit/quota/quota_types.h" 16 #include "webkit/quota/quota_types.h"
16 17
17 class IndexedDBContext; 18 class IndexedDBContext;
18 19
19 // A QuotaClient implementation to integrate IndexedDB 20 // A QuotaClient implementation to integrate IndexedDB
20 // with the quota management system. This interface is used 21 // with the quota management system. This interface is used
21 // on the IO thread by the quota manager. 22 // on the IO thread by the quota manager.
22 class IndexedDBQuotaClient : public quota::QuotaClient, 23 class IndexedDBQuotaClient : public quota::QuotaClient,
23 public quota::QuotaTaskObserver { 24 public quota::QuotaTaskObserver {
24 public: 25 public:
25 IndexedDBQuotaClient( 26 CONTENT_EXPORT IndexedDBQuotaClient(
26 base::MessageLoopProxy* tracker_thread, 27 base::MessageLoopProxy* tracker_thread,
27 IndexedDBContext* indexed_db_context); 28 IndexedDBContext* indexed_db_context);
28 virtual ~IndexedDBQuotaClient(); 29 CONTENT_EXPORT virtual ~IndexedDBQuotaClient();
29 30
30 // QuotaClient method overrides 31 // QuotaClient method overrides
31 virtual ID id() const OVERRIDE; 32 virtual ID id() const OVERRIDE;
32 virtual void OnQuotaManagerDestroyed() OVERRIDE; 33 virtual void OnQuotaManagerDestroyed() OVERRIDE;
33 virtual void GetOriginUsage(const GURL& origin_url, 34 virtual void GetOriginUsage(const GURL& origin_url,
34 quota::StorageType type, 35 quota::StorageType type,
35 GetUsageCallback* callback) OVERRIDE; 36 GetUsageCallback* callback) OVERRIDE;
36 virtual void GetOriginsForType(quota::StorageType type, 37 virtual void GetOriginsForType(quota::StorageType type,
37 GetOriginsCallback* callback) OVERRIDE; 38 GetOriginsCallback* callback) OVERRIDE;
38 virtual void GetOriginsForHost(quota::StorageType type, 39 virtual void GetOriginsForHost(quota::StorageType type,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 scoped_refptr<base::MessageLoopProxy> webkit_thread_message_loop_; 76 scoped_refptr<base::MessageLoopProxy> webkit_thread_message_loop_;
76 scoped_refptr<IndexedDBContext> indexed_db_context_; 77 scoped_refptr<IndexedDBContext> indexed_db_context_;
77 UsageForOriginCallbackMap usage_for_origin_callbacks_; 78 UsageForOriginCallbackMap usage_for_origin_callbacks_;
78 OriginsForTypeCallbackQueue origins_for_type_callbacks_; 79 OriginsForTypeCallbackQueue origins_for_type_callbacks_;
79 OriginsForHostCallbackMap origins_for_host_callbacks_; 80 OriginsForHostCallbackMap origins_for_host_callbacks_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(IndexedDBQuotaClient); 82 DISALLOW_COPY_AND_ASSIGN(IndexedDBQuotaClient);
82 }; 83 };
83 84
84 #endif // CONTENT_BROWER_IN_PROCESS_WEBKIT_QUOTA_CLIENT_H_ 85 #endif // CONTENT_BROWER_IN_PROCESS_WEBKIT_QUOTA_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698