OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_EXTENSIONS_API_DATA_REDUCTION_PROXY_DATA_REDUCTION_PROXY_
API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DATA_REDUCTION_PROXY_DATA_REDUCTION_PROXY_
API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_DATA_REDUCTION_PROXY_DATA_REDUCTION_PROXY_
API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DATA_REDUCTION_PROXY_DATA_REDUCTION_PROXY_
API_H_ |
7 | 7 |
8 #include "extensions/browser/extension_function.h" | 8 #include "extensions/browser/extension_function.h" |
9 | 9 |
10 namespace data_reduction_proxy { | 10 namespace data_reduction_proxy { |
(...skipping 17 matching lines...) Expand all Loading... |
28 : public UIThreadExtensionFunction { | 28 : public UIThreadExtensionFunction { |
29 private: | 29 private: |
30 ~DataReductionProxyGetDataUsageFunction() override{}; | 30 ~DataReductionProxyGetDataUsageFunction() override{}; |
31 | 31 |
32 DECLARE_EXTENSION_FUNCTION("dataReductionProxy.getDataUsage", | 32 DECLARE_EXTENSION_FUNCTION("dataReductionProxy.getDataUsage", |
33 DATAREDUCTIONPROXY_GETDATAUSAGE) | 33 DATAREDUCTIONPROXY_GETDATAUSAGE) |
34 | 34 |
35 ResponseAction Run() override; | 35 ResponseAction Run() override; |
36 | 36 |
37 void ReplyWithDataUsage( | 37 void ReplyWithDataUsage( |
38 scoped_ptr<std::vector<data_reduction_proxy::DataUsageBucket>> | 38 std::unique_ptr<std::vector<data_reduction_proxy::DataUsageBucket>> |
39 data_usage); | 39 data_usage); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace extensions | 42 } // namespace extensions |
43 | 43 |
44 #endif // CHROME_BROWSER_EXTENSIONS_API_DATA_REDUCTION_PROXY_DATA_REDUCTION_PRO
XY_API_H_ | 44 #endif // CHROME_BROWSER_EXTENSIONS_API_DATA_REDUCTION_PROXY_DATA_REDUCTION_PRO
XY_API_H_ |
OLD | NEW |