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

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

Issue 12041029: Add ResetModem method and call it once non_cellular activation is done. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1559 virtual void RequestCellularRegister(const std::string& network_id) = 0; 1559 virtual void RequestCellularRegister(const std::string& network_id) = 0;
1560 1560
1561 // Change data roaming restriction for current cellular device. 1561 // Change data roaming restriction for current cellular device.
1562 virtual void SetCellularDataRoamingAllowed(bool new_value) = 0; 1562 virtual void SetCellularDataRoamingAllowed(bool new_value) = 0;
1563 1563
1564 // Changes the active cellular carrier to the one provided, calls the closure 1564 // Changes the active cellular carrier to the one provided, calls the closure
1565 // once the transition is complete. 1565 // once the transition is complete.
1566 virtual void SetCarrier(const std::string& carrier, 1566 virtual void SetCarrier(const std::string& carrier,
1567 const NetworkOperationCallback& completed) = 0; 1567 const NetworkOperationCallback& completed) = 0;
1568 1568
1569 // Resets the cellular device, calls the closure once the transition is
1570 // complete.
1571 virtual void ResetModem() = 0;
1572
1569 // Return true if GSM SIM card can work only with enabled roaming. 1573 // Return true if GSM SIM card can work only with enabled roaming.
1570 virtual bool IsCellularAlwaysInRoaming() = 0; 1574 virtual bool IsCellularAlwaysInRoaming() = 0;
1571 1575
1572 // Request a scan for new wifi networks. 1576 // Request a scan for new wifi networks.
1573 virtual void RequestNetworkScan() = 0; 1577 virtual void RequestNetworkScan() = 0;
1574 1578
1575 // TODO(joth): Add GetCellTowers to retrieve a CellTowerVector. 1579 // TODO(joth): Add GetCellTowers to retrieve a CellTowerVector.
1576 1580
1577 // Return true if a profile matching |type| is loaded. 1581 // Return true if a profile matching |type| is loaded.
1578 virtual bool HasProfileType(NetworkProfileType type) const = 0; 1582 virtual bool HasProfileType(NetworkProfileType type) const = 0;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 const std::string& service_path) = 0; 1734 const std::string& service_path) = 0;
1731 1735
1732 // Factory function, creates a new instance and returns ownership. 1736 // Factory function, creates a new instance and returns ownership.
1733 // For normal usage, access the singleton via CrosLibrary::Get(). 1737 // For normal usage, access the singleton via CrosLibrary::Get().
1734 static NetworkLibrary* GetImpl(bool stub); 1738 static NetworkLibrary* GetImpl(bool stub);
1735 }; 1739 };
1736 1740
1737 } // namespace chromeos 1741 } // namespace chromeos
1738 1742
1739 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 1743 #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_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698