| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 416 |
| 417 // Force an update of the system info. | 417 // Force an update of the system info. |
| 418 virtual void UpdateSystemInfo() = 0; | 418 virtual void UpdateSystemInfo() = 0; |
| 419 | 419 |
| 420 // Connect to the specified wireless network with password. | 420 // Connect to the specified wireless network with password. |
| 421 virtual void ConnectToWifiNetwork(const WifiNetwork* network, | 421 virtual void ConnectToWifiNetwork(const WifiNetwork* network, |
| 422 const std::string& password, | 422 const std::string& password, |
| 423 const std::string& identity, | 423 const std::string& identity, |
| 424 const std::string& certpath) = 0; | 424 const std::string& certpath) = 0; |
| 425 | 425 |
| 426 // Connect to the specified wifi ssid with password. | 426 // Connect to the specified network with security, ssid, and password. |
| 427 virtual void ConnectToWifiNetwork(const std::string& ssid, | 427 virtual void ConnectToWifiNetwork(ConnectionSecurity security, |
| 428 const std::string& ssid, |
| 428 const std::string& password, | 429 const std::string& password, |
| 429 const std::string& identity, | 430 const std::string& identity, |
| 430 const std::string& certpath, | 431 const std::string& certpath, |
| 431 bool auto_connect) = 0; | 432 bool auto_connect) = 0; |
| 432 | 433 |
| 433 // Connect to the specified cellular network. | 434 // Connect to the specified cellular network. |
| 434 virtual void ConnectToCellularNetwork(const CellularNetwork* network) = 0; | 435 virtual void ConnectToCellularNetwork(const CellularNetwork* network) = 0; |
| 435 | 436 |
| 436 // Initiates cellular data plan refresh. Plan data will be passed through | 437 // Initiates cellular data plan refresh. Plan data will be passed through |
| 437 // Network::Observer::CellularDataPlanChanged callback. | 438 // Network::Observer::CellularDataPlanChanged callback. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 virtual std::string GetHtmlInfo(int refresh) = 0; | 484 virtual std::string GetHtmlInfo(int refresh) = 0; |
| 484 | 485 |
| 485 // Factory function, creates a new instance and returns ownership. | 486 // Factory function, creates a new instance and returns ownership. |
| 486 // For normal usage, access the singleton via CrosLibrary::Get(). | 487 // For normal usage, access the singleton via CrosLibrary::Get(). |
| 487 static NetworkLibrary* GetImpl(bool stub); | 488 static NetworkLibrary* GetImpl(bool stub); |
| 488 }; | 489 }; |
| 489 | 490 |
| 490 } // namespace chromeos | 491 } // namespace chromeos |
| 491 | 492 |
| 492 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 493 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
| OLD | NEW |