| OLD | NEW |
| 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_NETWORK_MESSAGE_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 public NetworkLibrary::CellularDataPlanObserver, | 28 public NetworkLibrary::CellularDataPlanObserver, |
| 29 public NetworkLibrary::UserActionObserver, | 29 public NetworkLibrary::UserActionObserver, |
| 30 public base::SupportsWeakPtr<NetworkMessageObserver> { | 30 public base::SupportsWeakPtr<NetworkMessageObserver> { |
| 31 public: | 31 public: |
| 32 explicit NetworkMessageObserver(Profile* profile); | 32 explicit NetworkMessageObserver(Profile* profile); |
| 33 virtual ~NetworkMessageObserver(); | 33 virtual ~NetworkMessageObserver(); |
| 34 | 34 |
| 35 static bool IsApplicableBackupPlan(const CellularDataPlan* plan, | 35 static bool IsApplicableBackupPlan(const CellularDataPlan* plan, |
| 36 const CellularDataPlan* other_plan); | 36 const CellularDataPlan* other_plan); |
| 37 private: | 37 private: |
| 38 virtual void OpenMobileSetupPage(const base::ListValue* args); | 38 virtual void OpenMobileSetupPage(const std::string& service_path, |
| 39 const base::ListValue* args); |
| 39 virtual void OpenMoreInfoPage(const base::ListValue* args); | 40 virtual void OpenMoreInfoPage(const base::ListValue* args); |
| 40 virtual void InitNewPlan(const CellularDataPlan* plan); | 41 virtual void InitNewPlan(const CellularDataPlan* plan); |
| 41 virtual void ShowNeedsPlanNotification(const CellularNetwork* cellular); | 42 virtual void ShowNeedsPlanNotification(const CellularNetwork* cellular); |
| 42 virtual void ShowNoDataNotification(CellularDataPlanType plan_type); | 43 virtual void ShowNoDataNotification(const CellularNetwork* cellular, |
| 44 CellularDataPlanType plan_type); |
| 43 virtual void ShowLowDataNotification(const CellularDataPlan* plan); | 45 virtual void ShowLowDataNotification(const CellularDataPlan* plan); |
| 44 | 46 |
| 45 // NetworkLibrary::NetworkManagerObserver implementation. | 47 // NetworkLibrary::NetworkManagerObserver implementation. |
| 46 virtual void OnNetworkManagerChanged(NetworkLibrary* obj) OVERRIDE; | 48 virtual void OnNetworkManagerChanged(NetworkLibrary* obj) OVERRIDE; |
| 47 // NetworkLibrary::CellularDataPlanObserver implementation. | 49 // NetworkLibrary::CellularDataPlanObserver implementation. |
| 48 virtual void OnCellularDataPlanChanged(NetworkLibrary* obj) OVERRIDE; | 50 virtual void OnCellularDataPlanChanged(NetworkLibrary* obj) OVERRIDE; |
| 49 // NetworkLibrary::UserActionObserver implementation. | 51 // NetworkLibrary::UserActionObserver implementation. |
| 50 virtual void OnConnectionInitiated(NetworkLibrary* obj, | 52 virtual void OnConnectionInitiated(NetworkLibrary* obj, |
| 51 const Network* network) OVERRIDE; | 53 const Network* network) OVERRIDE; |
| 52 | 54 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 72 scoped_ptr<NetworkMessageNotification> notification_low_data_; | 74 scoped_ptr<NetworkMessageNotification> notification_low_data_; |
| 73 // Notification for showing no data warning | 75 // Notification for showing no data warning |
| 74 scoped_ptr<NetworkMessageNotification> notification_no_data_; | 76 scoped_ptr<NetworkMessageNotification> notification_no_data_; |
| 75 | 77 |
| 76 DISALLOW_COPY_AND_ASSIGN(NetworkMessageObserver); | 78 DISALLOW_COPY_AND_ASSIGN(NetworkMessageObserver); |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 } // namespace chromeos | 81 } // namespace chromeos |
| 80 | 82 |
| 81 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ | 83 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ |
| OLD | NEW |