| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |