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

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

Issue 2496653002: Part 2 of base::IDMap refactor to eliminate IDMapOwnPointer/IDMapExternalPointer modes (Closed)
Patch Set: typedefs => using statements, update comments in base/id_map.h Created 4 years 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 | « content/child/push_messaging/push_provider.h ('k') | content/child/quota_dispatcher.cc » ('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_CHILD_QUOTA_DISPATCHER_H_ 5 #ifndef CONTENT_CHILD_QUOTA_DISPATCHER_H_
6 #define CONTENT_CHILD_QUOTA_DISPATCHER_H_ 6 #define CONTENT_CHILD_QUOTA_DISPATCHER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 private: 77 private:
78 // Message handlers. 78 // Message handlers.
79 void DidQueryStorageUsageAndQuota(int request_id, 79 void DidQueryStorageUsageAndQuota(int request_id,
80 int64_t current_usage, 80 int64_t current_usage,
81 int64_t current_quota); 81 int64_t current_quota);
82 void DidGrantStorageQuota(int request_id, 82 void DidGrantStorageQuota(int request_id,
83 int64_t current_usage, 83 int64_t current_usage,
84 int64_t granted_quota); 84 int64_t granted_quota);
85 void DidFail(int request_id, storage::QuotaStatusCode error); 85 void DidFail(int request_id, storage::QuotaStatusCode error);
86 86
87 IDMap<Callback, IDMapOwnPointer> pending_quota_callbacks_; 87 IDMap<std::unique_ptr<Callback>> pending_quota_callbacks_;
88 88
89 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 89 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
90 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 90 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(QuotaDispatcher); 92 DISALLOW_COPY_AND_ASSIGN(QuotaDispatcher);
93 }; 93 };
94 94
95 } // namespace content 95 } // namespace content
96 96
97 #endif // CONTENT_CHILD_QUOTA_DISPATCHER_H_ 97 #endif // CONTENT_CHILD_QUOTA_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/child/push_messaging/push_provider.h ('k') | content/child/quota_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698