| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // though some of the properties may have been cleared. If there are no | 76 // though some of the properties may have been cleared. If there are no |
| 77 // errors, |callback| will be run. | 77 // errors, |callback| will be run. |
| 78 void ClearProperties(const std::string& service_path, | 78 void ClearProperties(const std::string& service_path, |
| 79 const std::vector<std::string>& property_paths, | 79 const std::vector<std::string>& property_paths, |
| 80 const base::Closure& callback, | 80 const base::Closure& callback, |
| 81 const network_handler::ErrorCallback& error_callback); | 81 const network_handler::ErrorCallback& error_callback); |
| 82 | 82 |
| 83 // Creates a network with the given properties in the active Shill profile, | 83 // Creates a network with the given properties in the active Shill profile, |
| 84 // and returns the new service_path to |callback| if successful. See note on | 84 // and returns the new service_path to |callback| if successful. See note on |
| 85 // |callback| and |error_callback|, in class description above. | 85 // |callback| and |error_callback|, in class description above. |
| 86 // This may also be used to update an existing matching configuration, see |
| 87 // Shill documentation for Manager.ConfigureService and Manger.GetService. |
| 86 void CreateConfiguration( | 88 void CreateConfiguration( |
| 87 const base::DictionaryValue& properties, | 89 const base::DictionaryValue& properties, |
| 88 const network_handler::StringResultCallback& callback, | 90 const network_handler::StringResultCallback& callback, |
| 89 const network_handler::ErrorCallback& error_callback) const; | 91 const network_handler::ErrorCallback& error_callback) const; |
| 90 | 92 |
| 91 // Removes the network |service_path| from the remembered network list in the | 93 // Removes the network |service_path| from the remembered network list in the |
| 92 // active Shill profile. The network may still show up in the visible networks | 94 // active Shill profile. The network may still show up in the visible networks |
| 93 // after this, but no profile configuration will remain. See note on | 95 // after this, but no profile configuration will remain. See note on |
| 94 // |callback| and |error_callback|, in class description above. | 96 // |callback| and |error_callback|, in class description above. |
| 95 void RemoveConfiguration( | 97 void RemoveConfiguration( |
| 96 const std::string& service_path, | 98 const std::string& service_path, |
| 97 const base::Closure& callback, | 99 const base::Closure& callback, |
| 98 const network_handler::ErrorCallback& error_callback) const; | 100 const network_handler::ErrorCallback& error_callback) const; |
| 99 | 101 |
| 100 private: | 102 private: |
| 101 friend class NetworkConfigurationHandlerTest; | 103 friend class NetworkConfigurationHandlerTest; |
| 102 NetworkConfigurationHandler(); | 104 NetworkConfigurationHandler(); |
| 103 | 105 |
| 104 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationHandler); | 106 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationHandler); |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 } // namespace chromeos | 109 } // namespace chromeos |
| 108 | 110 |
| 109 #endif // CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_ | 111 #endif // CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_ |
| OLD | NEW |