OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |