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

Side by Side Diff: chromeos/network/managed_network_configuration_handler.h

Issue 1779633002: Invoke createNetwork() callback with GUID, not service name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix more trybot failures Created 4 years, 9 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ 5 #ifndef CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_
6 #define CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ 6 #define CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Initially configures an unconfigured network with the given user settings 93 // Initially configures an unconfigured network with the given user settings
94 // and returns the new identifier to |callback| if successful. Fails if the 94 // and returns the new identifier to |callback| if successful. Fails if the
95 // network was already configured by a call to this function or because of a 95 // network was already configured by a call to this function or because of a
96 // policy. The new configuration will be owned by user |userhash|. If 96 // policy. The new configuration will be owned by user |userhash|. If
97 // |userhash| is empty, the new configuration will be shared. This method is 97 // |userhash| is empty, the new configuration will be shared. This method is
98 // expected to be called by a user initiated action (see 98 // expected to be called by a user initiated action (see
99 // NetworkConfigurationObserver::Source). 99 // NetworkConfigurationObserver::Source).
100 virtual void CreateConfiguration( 100 virtual void CreateConfiguration(
101 const std::string& userhash, 101 const std::string& userhash,
102 const base::DictionaryValue& properties, 102 const base::DictionaryValue& properties,
103 const network_handler::StringResultCallback& callback, 103 const network_handler::ServiceResultCallback& callback,
104 const network_handler::ErrorCallback& error_callback) const = 0; 104 const network_handler::ErrorCallback& error_callback) const = 0;
105 105
106 // Removes the user's configuration from the network with |service_path|. The 106 // Removes the user's configuration from the network with |service_path|. The
107 // network may still show up in the visible networks after this, but no user 107 // network may still show up in the visible networks after this, but no user
108 // configuration will remain. If it was managed, it will still be configured. 108 // configuration will remain. If it was managed, it will still be configured.
109 // This method is expected to be called by a user initiated action (see 109 // This method is expected to be called by a user initiated action (see
110 // NetworkConfigurationObserver::Source). 110 // NetworkConfigurationObserver::Source).
111 virtual void RemoveConfiguration( 111 virtual void RemoveConfiguration(
112 const std::string& service_path, 112 const std::string& service_path,
113 const base::Closure& callback, 113 const base::Closure& callback,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 const std::string& guid, 151 const std::string& guid,
152 const std::string& profile_path) const = 0; 152 const std::string& profile_path) const = 0;
153 153
154 private: 154 private:
155 DISALLOW_ASSIGN(ManagedNetworkConfigurationHandler); 155 DISALLOW_ASSIGN(ManagedNetworkConfigurationHandler);
156 }; 156 };
157 157
158 } // namespace chromeos 158 } // namespace chromeos
159 159
160 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ 160 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698