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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 bool auto_connect) = 0; | 571 bool auto_connect) = 0; |
572 | 572 |
573 // Connect to the specified cellular network. | 573 // Connect to the specified cellular network. |
574 // Returns false if the attempt fails immediately. | 574 // Returns false if the attempt fails immediately. |
575 virtual bool ConnectToCellularNetwork(const CellularNetwork* network) = 0; | 575 virtual bool ConnectToCellularNetwork(const CellularNetwork* network) = 0; |
576 | 576 |
577 // Initiates cellular data plan refresh. Plan data will be passed through | 577 // Initiates cellular data plan refresh. Plan data will be passed through |
578 // Network::Observer::CellularDataPlanChanged callback. | 578 // Network::Observer::CellularDataPlanChanged callback. |
579 virtual void RefreshCellularDataPlans(const CellularNetwork* network) = 0; | 579 virtual void RefreshCellularDataPlans(const CellularNetwork* network) = 0; |
580 | 580 |
| 581 // Records information that cellular play payment had happened. |
| 582 virtual void SignalCellularPlanPayment() = 0; |
| 583 |
| 584 // Returns true if cellular plan payment had been recorded recently. |
| 585 virtual bool HasRecentCellularPlanPayment() = 0; |
| 586 |
581 // Disconnect from the specified wireless (either cellular or wifi) network. | 587 // Disconnect from the specified wireless (either cellular or wifi) network. |
582 virtual void DisconnectFromWirelessNetwork( | 588 virtual void DisconnectFromWirelessNetwork( |
583 const WirelessNetwork* network) = 0; | 589 const WirelessNetwork* network) = 0; |
584 | 590 |
585 // Save network information including passwords (wifi) and auto-connect. | 591 // Save network information including passwords (wifi) and auto-connect. |
586 virtual void SaveCellularNetwork(const CellularNetwork* network) = 0; | 592 virtual void SaveCellularNetwork(const CellularNetwork* network) = 0; |
587 virtual void SaveWifiNetwork(const WifiNetwork* network) = 0; | 593 virtual void SaveWifiNetwork(const WifiNetwork* network) = 0; |
588 | 594 |
589 // Forget the wifi network corresponding to service_path. | 595 // Forget the wifi network corresponding to service_path. |
590 virtual void ForgetWifiNetwork(const std::string& service_path) = 0; | 596 virtual void ForgetWifiNetwork(const std::string& service_path) = 0; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 virtual std::string GetHtmlInfo(int refresh) = 0; | 634 virtual std::string GetHtmlInfo(int refresh) = 0; |
629 | 635 |
630 // Factory function, creates a new instance and returns ownership. | 636 // Factory function, creates a new instance and returns ownership. |
631 // For normal usage, access the singleton via CrosLibrary::Get(). | 637 // For normal usage, access the singleton via CrosLibrary::Get(). |
632 static NetworkLibrary* GetImpl(bool stub); | 638 static NetworkLibrary* GetImpl(bool stub); |
633 }; | 639 }; |
634 | 640 |
635 } // namespace chromeos | 641 } // namespace chromeos |
636 | 642 |
637 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 643 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
OLD | NEW |