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

Side by Side Diff: extensions/browser/api/networking_config/networking_config_api.h

Issue 1902873002: Convert //extensions/browser/api from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 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 EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_ 6 #define EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "extensions/browser/extension_function.h" 9 #include "extensions/browser/extension_function.h"
10 #include "extensions/common/api/networking_config.h" 10 #include "extensions/common/api/networking_config.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 class NetworkingConfigSetNetworkFilterFunction 14 class NetworkingConfigSetNetworkFilterFunction
15 : public UIThreadExtensionFunction { 15 : public UIThreadExtensionFunction {
16 public: 16 public:
17 NetworkingConfigSetNetworkFilterFunction(); 17 NetworkingConfigSetNetworkFilterFunction();
18 18
19 ResponseAction Run() override; 19 ResponseAction Run() override;
20 20
21 DECLARE_EXTENSION_FUNCTION("networking.config.setNetworkFilter", 21 DECLARE_EXTENSION_FUNCTION("networking.config.setNetworkFilter",
22 NETWORKING_CONFIG_SETNETWORKFILTER); 22 NETWORKING_CONFIG_SETNETWORKFILTER);
23 23
24 protected: 24 protected:
25 ~NetworkingConfigSetNetworkFilterFunction() override; 25 ~NetworkingConfigSetNetworkFilterFunction() override;
26 26
27 scoped_ptr<api::networking_config::SetNetworkFilter::Params> parameters_; 27 std::unique_ptr<api::networking_config::SetNetworkFilter::Params> parameters_;
28 28
29 private: 29 private:
30 DISALLOW_COPY_AND_ASSIGN(NetworkingConfigSetNetworkFilterFunction); 30 DISALLOW_COPY_AND_ASSIGN(NetworkingConfigSetNetworkFilterFunction);
31 }; 31 };
32 32
33 class NetworkingConfigFinishAuthenticationFunction 33 class NetworkingConfigFinishAuthenticationFunction
34 : public UIThreadExtensionFunction { 34 : public UIThreadExtensionFunction {
35 public: 35 public:
36 NetworkingConfigFinishAuthenticationFunction(); 36 NetworkingConfigFinishAuthenticationFunction();
37 37
38 ResponseAction Run() override; 38 ResponseAction Run() override;
39 39
40 DECLARE_EXTENSION_FUNCTION("networking.config.finishAuthentication", 40 DECLARE_EXTENSION_FUNCTION("networking.config.finishAuthentication",
41 NETWORKING_CONFIG_FINISHAUTHENTICATION); 41 NETWORKING_CONFIG_FINISHAUTHENTICATION);
42 42
43 protected: 43 protected:
44 ~NetworkingConfigFinishAuthenticationFunction() override; 44 ~NetworkingConfigFinishAuthenticationFunction() override;
45 45
46 scoped_ptr<api::networking_config::FinishAuthentication::Params> parameters_; 46 std::unique_ptr<api::networking_config::FinishAuthentication::Params>
47 parameters_;
47 48
48 private: 49 private:
49 DISALLOW_COPY_AND_ASSIGN(NetworkingConfigFinishAuthenticationFunction); 50 DISALLOW_COPY_AND_ASSIGN(NetworkingConfigFinishAuthenticationFunction);
50 }; 51 };
51 52
52 } // namespace extensions 53 } // namespace extensions
53 54
54 #endif // EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_ 55 #endif // EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698