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

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

Issue 21046008: Convert all connect code to use NetworkHandler instead of NetworkLibrary (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add NetworkConfigurationHandler::SetNetworkProfile Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_NETWORK_CONFIGURATION_HANDLER_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_
6 #define CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_ 6 #define CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 const network_handler::StringResultCallback& callback, 92 const network_handler::StringResultCallback& callback,
93 const network_handler::ErrorCallback& error_callback); 93 const network_handler::ErrorCallback& error_callback);
94 94
95 // Removes the network |service_path| from any profiles that include it. 95 // Removes the network |service_path| from any profiles that include it.
96 // See note on |callback| and |error_callback| in class description above. 96 // See note on |callback| and |error_callback| in class description above.
97 void RemoveConfiguration( 97 void RemoveConfiguration(
98 const std::string& service_path, 98 const std::string& service_path,
99 const base::Closure& callback, 99 const base::Closure& callback,
100 const network_handler::ErrorCallback& error_callback); 100 const network_handler::ErrorCallback& error_callback);
101 101
102 // Changes the profile for the network |service_path| to |profile_path|.
103 // See note on |callback| and |error_callback| in class description above.
104 void SetNetworkProfile(const std::string& service_path,
105 const std::string& profile_path,
106 const base::Closure& callback,
107 const network_handler::ErrorCallback& error_callback);
108
pneubeck (no reviews) 2013/08/08 11:10:00 nit: remove one empty line
stevenjb 2013/08/08 19:00:56 Done.
109
102 // Construct and initialize an instance for testing. 110 // Construct and initialize an instance for testing.
103 static NetworkConfigurationHandler* InitializeForTest( 111 static NetworkConfigurationHandler* InitializeForTest(
104 NetworkStateHandler* network_state_handler); 112 NetworkStateHandler* network_state_handler);
105 113
106 protected: 114 protected:
107 friend class NetworkHandler; 115 friend class NetworkHandler;
108 friend class NetworkConfigurationHandlerTest; 116 friend class NetworkConfigurationHandlerTest;
109 friend class NetworkConfigurationHandlerStubTest; 117 friend class NetworkConfigurationHandlerStubTest;
110 class ProfileEntryDeleter; 118 class ProfileEntryDeleter;
111 119
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 160
153 // Map of in-progress deleter instances. Owned by this class. 161 // Map of in-progress deleter instances. Owned by this class.
154 std::map<std::string, ProfileEntryDeleter*> profile_entry_deleters_; 162 std::map<std::string, ProfileEntryDeleter*> profile_entry_deleters_;
155 163
156 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationHandler); 164 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationHandler);
157 }; 165 };
158 166
159 } // namespace chromeos 167 } // namespace chromeos
160 168
161 #endif // CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_ 169 #endif // CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698