| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 void SetNetworkProfile(const std::string& service_path, | 104 void SetNetworkProfile(const std::string& service_path, |
| 105 const std::string& profile_path, | 105 const std::string& profile_path, |
| 106 const base::Closure& callback, | 106 const base::Closure& callback, |
| 107 const network_handler::ErrorCallback& error_callback); | 107 const network_handler::ErrorCallback& error_callback); |
| 108 | 108 |
| 109 // Construct and initialize an instance for testing. | 109 // Construct and initialize an instance for testing. |
| 110 static NetworkConfigurationHandler* InitializeForTest( | 110 static NetworkConfigurationHandler* InitializeForTest( |
| 111 NetworkStateHandler* network_state_handler); | 111 NetworkStateHandler* network_state_handler); |
| 112 | 112 |
| 113 protected: | 113 protected: |
| 114 friend class ClientCertResolverTest; |
| 114 friend class NetworkHandler; | 115 friend class NetworkHandler; |
| 115 friend class NetworkConfigurationHandlerTest; | 116 friend class NetworkConfigurationHandlerTest; |
| 116 friend class NetworkConfigurationHandlerStubTest; | 117 friend class NetworkConfigurationHandlerStubTest; |
| 117 class ProfileEntryDeleter; | 118 class ProfileEntryDeleter; |
| 118 | 119 |
| 119 NetworkConfigurationHandler(); | 120 NetworkConfigurationHandler(); |
| 120 void Init(NetworkStateHandler* network_state_handler); | 121 void Init(NetworkStateHandler* network_state_handler); |
| 121 | 122 |
| 122 void RunCreateNetworkCallback( | 123 void RunCreateNetworkCallback( |
| 123 const network_handler::StringResultCallback& callback, | 124 const network_handler::StringResultCallback& callback, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 160 |
| 160 // Map of in-progress deleter instances. Owned by this class. | 161 // Map of in-progress deleter instances. Owned by this class. |
| 161 std::map<std::string, ProfileEntryDeleter*> profile_entry_deleters_; | 162 std::map<std::string, ProfileEntryDeleter*> profile_entry_deleters_; |
| 162 | 163 |
| 163 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationHandler); | 164 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationHandler); |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 } // namespace chromeos | 167 } // namespace chromeos |
| 167 | 168 |
| 168 #endif // CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_ | 169 #endif // CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_ |
| OLD | NEW |