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

Side by Side Diff: content/browser/devtools/protocol/usage_and_quota_query.h

Issue 642263004: [DevTools] Make generated protocol structs wrappers around DictionaryValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_DEVTOOLS_PROTOCOL_QUOTA_AND_USAGE_QUERY_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_QUOTA_AND_USAGE_QUERY_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_QUOTA_AND_USAGE_QUERY_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_QUOTA_AND_USAGE_QUERY_H_
7 7
8 #include "content/browser/devtools/protocol/devtools_protocol_handler_impl.h" 8 #include "content/browser/devtools/protocol/devtools_protocol_handler_impl.h"
9 #include "storage/browser/quota/quota_manager.h" 9 #include "storage/browser/quota/quota_manager.h"
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 virtual ~UsageAndQuotaQuery(); 27 virtual ~UsageAndQuotaQuery();
28 28
29 void DidGetTemporaryQuota(storage::QuotaStatusCode status, 29 void DidGetTemporaryQuota(storage::QuotaStatusCode status,
30 int64 used_bytes, 30 int64 used_bytes,
31 int64 quota_in_bytes); 31 int64 quota_in_bytes);
32 32
33 void DidGetPersistentQuota(storage::QuotaStatusCode status, int64 value); 33 void DidGetPersistentQuota(storage::QuotaStatusCode status, int64 value);
34 34
35 using UsageItemsCallback = 35 using UsageItemsCallback =
36 base::Callback<void(const std::vector<UsageItem>&)>; 36 base::Callback<void(scoped_ptr<ListBuilder<UsageItem>>)>;
37 37
38 void GetHostUsage(storage::StorageType storage_type, 38 void GetHostUsage(storage::StorageType storage_type,
39 const UsageItemsCallback& items_callback); 39 const UsageItemsCallback& items_callback);
40 40
41 void DidGetHostUsage(const UsageItemsCallback& items_callback, 41 void DidGetHostUsage(const UsageItemsCallback& items_callback,
42 const std::vector<UsageItem>& usage_list); 42 scoped_ptr<ListBuilder<UsageItem>> usage_list);
43 43
44 scoped_refptr<storage::QuotaManager> quota_manager_; 44 scoped_refptr<storage::QuotaManager> quota_manager_;
45 GURL security_origin_; 45 GURL security_origin_;
46 Callback callback_; 46 Callback callback_;
47 Quota quota_; 47 scoped_ptr<Quota> quota_;
48 Usage usage_; 48 scoped_ptr<Usage> usage_;
49 }; 49 };
50 50
51 } // namespace page 51 } // namespace page
52 } // namespace devtools 52 } // namespace devtools
53 } // namespace content 53 } // namespace content
54 54
55 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_QUOTA_AND_USAGE_QUERY_H_ 55 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_QUOTA_AND_USAGE_QUERY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698