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

Side by Side Diff: extensions/browser/api/networking_private/networking_private_chromeos.h

Issue 2471723002: chromeos: networkingPrivate: Set active proxy values (Closed)
Patch Set: Separate out UI changes Created 4 years, 1 month 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 EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_ 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_ 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 std::unique_ptr<base::ListValue> GetEnabledNetworkTypes() override; 93 std::unique_ptr<base::ListValue> GetEnabledNetworkTypes() override;
94 std::unique_ptr<DeviceStateList> GetDeviceStateList() override; 94 std::unique_ptr<DeviceStateList> GetDeviceStateList() override;
95 bool EnableNetworkType(const std::string& type) override; 95 bool EnableNetworkType(const std::string& type) override;
96 bool DisableNetworkType(const std::string& type) override; 96 bool DisableNetworkType(const std::string& type) override;
97 bool RequestScan() override; 97 bool RequestScan() override;
98 98
99 private: 99 private:
100 // Callback for both GetProperties and GetManagedProperties. Copies 100 // Callback for both GetProperties and GetManagedProperties. Copies
101 // |dictionary| and appends any networkingPrivate API specific properties, 101 // |dictionary| and appends any networkingPrivate API specific properties,
102 // then calls |callback| with the result. 102 // then calls |callback| with the result.
103 void GetPropertiesCallback(const DictionaryCallback& callback, 103 void GetPropertiesCallback(const std::string& guid,
104 bool managed,
105 const DictionaryCallback& callback,
104 const std::string& service_path, 106 const std::string& service_path,
105 const base::DictionaryValue& dictionary); 107 const base::DictionaryValue& dictionary);
106 108
107 // Populate ThirdPartyVPN.ProviderName with the provider name for third-party 109 // Populate ThirdPartyVPN.ProviderName with the provider name for third-party
108 // VPNs. The provider name needs to be looked up from the list of extensions 110 // VPNs. The provider name needs to be looked up from the list of extensions
109 // which is not available to the chromeos/network module. 111 // which is not available to the chromeos/network module.
110 void AppendThirdPartyProviderName(base::DictionaryValue* dictionary); 112 void AppendThirdPartyProviderName(base::DictionaryValue* dictionary);
111 113
114 // Set the active proxy values for connected networks.
michaelpg 2016/11/02 23:55:25 nit: "Sets"
stevenjb 2016/11/03 17:48:56 Done.
115 void SetActiveProxyValues(const std::string& guid,
116 base::DictionaryValue* dictionary);
117
112 // Handles connection failures, possibly showing UI for configuration 118 // Handles connection failures, possibly showing UI for configuration
113 // failures, then calls the appropriate callback. 119 // failures, then calls the appropriate callback.
114 void ConnectFailureCallback( 120 void ConnectFailureCallback(
115 const std::string& guid, 121 const std::string& guid,
116 const VoidCallback& success_callback, 122 const VoidCallback& success_callback,
117 const FailureCallback& failure_callback, 123 const FailureCallback& failure_callback,
118 const std::string& error_name, 124 const std::string& error_name,
119 std::unique_ptr<base::DictionaryValue> error_data); 125 std::unique_ptr<base::DictionaryValue> error_data);
120 126
121 content::BrowserContext* browser_context_; 127 content::BrowserContext* browser_context_;
122 base::WeakPtrFactory<NetworkingPrivateChromeOS> weak_ptr_factory_; 128 base::WeakPtrFactory<NetworkingPrivateChromeOS> weak_ptr_factory_;
123 129
124 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS); 130 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS);
125 }; 131 };
126 132
127 } // namespace extensions 133 } // namespace extensions
128 134
129 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS _H_ 135 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698