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

Side by Side Diff: chrome/browser/chromeos/cros/network_library.h

Issue 10824242: This adds Cros API for calling the "Refresh" function on shill's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indentation nit Created 8 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
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 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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 virtual bool HasProfileType(NetworkProfileType type) const = 0; 1551 virtual bool HasProfileType(NetworkProfileType type) const = 0;
1552 1552
1553 // Move the network to the shared/global profile. 1553 // Move the network to the shared/global profile.
1554 virtual void SetNetworkProfile(const std::string& service_path, 1554 virtual void SetNetworkProfile(const std::string& service_path,
1555 NetworkProfileType type) = 0; 1555 NetworkProfileType type) = 0;
1556 1556
1557 // Returns false if there is no way to connect to this network, even with 1557 // Returns false if there is no way to connect to this network, even with
1558 // user input (e.g. it requires a user profile but none is available). 1558 // user input (e.g. it requires a user profile but none is available).
1559 virtual bool CanConnectToNetwork(const Network* network) const = 0; 1559 virtual bool CanConnectToNetwork(const Network* network) const = 0;
1560 1560
1561 // Refresh the IP configuration of the given network after changes. Puts
1562 // newly configured properties into effect and renews DHCP lease.
1563 virtual void RefreshIPConfig(Network* network) = 0;
1564
1561 // Connect to the specified wireless network. 1565 // Connect to the specified wireless network.
1562 virtual void ConnectToWifiNetwork(WifiNetwork* network) = 0; 1566 virtual void ConnectToWifiNetwork(WifiNetwork* network) = 0;
1563 1567
1564 // Connect to the specified wireless network and set its profile 1568 // Connect to the specified wireless network and set its profile
1565 // to SHARED if |shared| is true, otherwise to USER. 1569 // to SHARED if |shared| is true, otherwise to USER.
1566 virtual void ConnectToWifiNetwork(WifiNetwork* network, bool shared) = 0; 1570 virtual void ConnectToWifiNetwork(WifiNetwork* network, bool shared) = 0;
1567 1571
1568 // Connect to the specified cellular network. 1572 // Connect to the specified cellular network.
1569 virtual void ConnectToCellularNetwork(CellularNetwork* network) = 0; 1573 virtual void ConnectToCellularNetwork(CellularNetwork* network) = 0;
1570 1574
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 const std::string& service_path) = 0; 1686 const std::string& service_path) = 0;
1683 1687
1684 // Factory function, creates a new instance and returns ownership. 1688 // Factory function, creates a new instance and returns ownership.
1685 // For normal usage, access the singleton via CrosLibrary::Get(). 1689 // For normal usage, access the singleton via CrosLibrary::Get().
1686 static NetworkLibrary* GetImpl(bool stub); 1690 static NetworkLibrary* GetImpl(bool stub);
1687 }; 1691 };
1688 1692
1689 } // namespace chromeos 1693 } // namespace chromeos
1690 1694
1691 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 1695 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/mock_network_library.h ('k') | chrome/browser/chromeos/cros/network_library_impl_cros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698