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

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

Issue 14753003: Don't open mobile setup when activating Sprint network from network menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after
1531 // Records information that cellular plan payment has happened. 1531 // Records information that cellular plan payment has happened.
1532 virtual void SignalCellularPlanPayment() = 0; 1532 virtual void SignalCellularPlanPayment() = 0;
1533 1533
1534 // Returns true if cellular plan payment has been recorded recently. 1534 // Returns true if cellular plan payment has been recorded recently.
1535 virtual bool HasRecentCellularPlanPayment() = 0; 1535 virtual bool HasRecentCellularPlanPayment() = 0;
1536 1536
1537 // Returns home carrier ID if available, otherwise empty string is returned. 1537 // Returns home carrier ID if available, otherwise empty string is returned.
1538 // Carrier ID format: <carrier name> (country). Ex.: "Verizon (us)". 1538 // Carrier ID format: <carrier name> (country). Ex.: "Verizon (us)".
1539 virtual const std::string& GetCellularHomeCarrierId() const = 0; 1539 virtual const std::string& GetCellularHomeCarrierId() const = 0;
1540 1540
1541 // Checks if the current cellular device should be activated by directly
1542 // calling it's activate function instead of going through the activation
1543 // process.
1544 // Note: Currently Sprint is the only carrier using direct activation.
1545 virtual bool CellularDeviceUsesDirectActivation() const = 0;
1546
1541 // Passes |old_pin|, |new_pin| to change SIM card PIM. 1547 // Passes |old_pin|, |new_pin| to change SIM card PIM.
1542 virtual void ChangePin(const std::string& old_pin, 1548 virtual void ChangePin(const std::string& old_pin,
1543 const std::string& new_pin) = 0; 1549 const std::string& new_pin) = 0;
1544 1550
1545 // Passes |pin|, |require_pin| value to change SIM card RequirePin setting. 1551 // Passes |pin|, |require_pin| value to change SIM card RequirePin setting.
1546 virtual void ChangeRequirePin(bool require_pin, 1552 virtual void ChangeRequirePin(bool require_pin,
1547 const std::string& pin) = 0; 1553 const std::string& pin) = 0;
1548 1554
1549 // Passes |pin| to unlock SIM card. 1555 // Passes |pin| to unlock SIM card.
1550 virtual void EnterPin(const std::string& pin) = 0; 1556 virtual void EnterPin(const std::string& pin) = 0;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 const std::string& service_path) = 0; 1738 const std::string& service_path) = 0;
1733 1739
1734 // Factory function, creates a new instance and returns ownership. 1740 // Factory function, creates a new instance and returns ownership.
1735 // For normal usage, access the singleton via CrosLibrary::Get(). 1741 // For normal usage, access the singleton via CrosLibrary::Get().
1736 static NetworkLibrary* GetImpl(bool stub); 1742 static NetworkLibrary* GetImpl(bool stub);
1737 }; 1743 };
1738 1744
1739 } // namespace chromeos 1745 } // namespace chromeos
1740 1746
1741 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 1747 #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