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

Side by Side Diff: content/common/quota_dispatcher.h

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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 | « content/common/pepper_plugin_registry.h ('k') | content/common/resource_dispatcher.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 CONTENT_COMMON_QUOTA_DISPATCHER_H_ 5 #ifndef CONTENT_COMMON_QUOTA_DISPATCHER_H_
6 #define CONTENT_COMMON_QUOTA_DISPATCHER_H_ 6 #define CONTENT_COMMON_QUOTA_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 22 matching lines...) Expand all
33 virtual ~Callback() {} 33 virtual ~Callback() {}
34 virtual void DidQueryStorageUsageAndQuota(int64 usage, int64 quota) = 0; 34 virtual void DidQueryStorageUsageAndQuota(int64 usage, int64 quota) = 0;
35 virtual void DidGrantStorageQuota(int64 granted_quota) = 0; 35 virtual void DidGrantStorageQuota(int64 granted_quota) = 0;
36 virtual void DidFail(quota::QuotaStatusCode status) = 0; 36 virtual void DidFail(quota::QuotaStatusCode status) = 0;
37 }; 37 };
38 38
39 QuotaDispatcher(); 39 QuotaDispatcher();
40 virtual ~QuotaDispatcher(); 40 virtual ~QuotaDispatcher();
41 41
42 // IPC::Channel::Listener implementation. 42 // IPC::Channel::Listener implementation.
43 virtual bool OnMessageReceived(const IPC::Message& msg); 43 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
44 44
45 void QueryStorageUsageAndQuota(const GURL& gurl, 45 void QueryStorageUsageAndQuota(const GURL& gurl,
46 quota::StorageType type, 46 quota::StorageType type,
47 Callback* callback); 47 Callback* callback);
48 void RequestStorageQuota(int render_view_id, 48 void RequestStorageQuota(int render_view_id,
49 const GURL& gurl, 49 const GURL& gurl,
50 quota::StorageType type, 50 quota::StorageType type,
51 int64 requested_size, 51 int64 requested_size,
52 Callback* callback); 52 Callback* callback);
53 53
54 // Creates a new Callback instance for WebStorageQuotaCallbacks. 54 // Creates a new Callback instance for WebStorageQuotaCallbacks.
55 static Callback* CreateWebStorageQuotaCallbacksWrapper( 55 static Callback* CreateWebStorageQuotaCallbacksWrapper(
56 WebKit::WebStorageQuotaCallbacks* callbacks); 56 WebKit::WebStorageQuotaCallbacks* callbacks);
57 57
58 private: 58 private:
59 // Message handlers. 59 // Message handlers.
60 void DidQueryStorageUsageAndQuota(int request_id, 60 void DidQueryStorageUsageAndQuota(int request_id,
61 int64 current_usage, 61 int64 current_usage,
62 int64 current_quota); 62 int64 current_quota);
63 void DidGrantStorageQuota(int request_id, 63 void DidGrantStorageQuota(int request_id,
64 int64 granted_quota); 64 int64 granted_quota);
65 void DidFail(int request_id, quota::QuotaStatusCode error); 65 void DidFail(int request_id, quota::QuotaStatusCode error);
66 66
67 IDMap<Callback, IDMapOwnPointer> pending_quota_callbacks_; 67 IDMap<Callback, IDMapOwnPointer> pending_quota_callbacks_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(QuotaDispatcher); 69 DISALLOW_COPY_AND_ASSIGN(QuotaDispatcher);
70 }; 70 };
71 71
72 #endif // CONTENT_COMMON_QUOTA_DISPATCHER_H_ 72 #endif // CONTENT_COMMON_QUOTA_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/common/pepper_plugin_registry.h ('k') | content/common/resource_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698