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

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: Rebase 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
« no previous file with comments | « chromeos/network/favorite_state.cc ('k') | chromeos/network/network_configuration_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
102 // Construct and initialize an instance for testing. 109 // Construct and initialize an instance for testing.
103 static NetworkConfigurationHandler* InitializeForTest( 110 static NetworkConfigurationHandler* InitializeForTest(
104 NetworkStateHandler* network_state_handler); 111 NetworkStateHandler* network_state_handler);
105 112
106 protected: 113 protected:
107 friend class NetworkHandler; 114 friend class NetworkHandler;
108 friend class NetworkConfigurationHandlerTest; 115 friend class NetworkConfigurationHandlerTest;
109 friend class NetworkConfigurationHandlerStubTest; 116 friend class NetworkConfigurationHandlerStubTest;
110 class ProfileEntryDeleter; 117 class ProfileEntryDeleter;
111 118
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 159
153 // Map of in-progress deleter instances. Owned by this class. 160 // Map of in-progress deleter instances. Owned by this class.
154 std::map<std::string, ProfileEntryDeleter*> profile_entry_deleters_; 161 std::map<std::string, ProfileEntryDeleter*> profile_entry_deleters_;
155 162
156 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationHandler); 163 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationHandler);
157 }; 164 };
158 165
159 } // namespace chromeos 166 } // namespace chromeos
160 167
161 #endif // CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_ 168 #endif // CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/favorite_state.cc ('k') | chromeos/network/network_configuration_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698