OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 12 matching lines...) Expand all Loading... |
23 class NetworkMessageObserver : public NetworkLibrary::NetworkManagerObserver, | 23 class NetworkMessageObserver : public NetworkLibrary::NetworkManagerObserver, |
24 public NetworkLibrary::CellularDataPlanObserver, | 24 public NetworkLibrary::CellularDataPlanObserver, |
25 public NetworkLibrary::UserActionObserver { | 25 public NetworkLibrary::UserActionObserver { |
26 public: | 26 public: |
27 explicit NetworkMessageObserver(Profile* profile); | 27 explicit NetworkMessageObserver(Profile* profile); |
28 virtual ~NetworkMessageObserver(); | 28 virtual ~NetworkMessageObserver(); |
29 | 29 |
30 static bool IsApplicableBackupPlan(const CellularDataPlan* plan, | 30 static bool IsApplicableBackupPlan(const CellularDataPlan* plan, |
31 const CellularDataPlan* other_plan); | 31 const CellularDataPlan* other_plan); |
32 private: | 32 private: |
33 virtual void OpenMobileSetupPage(const ListValue* args); | 33 virtual void OpenMobileSetupPage(const base::ListValue* args); |
34 virtual void OpenMoreInfoPage(const ListValue* args); | 34 virtual void OpenMoreInfoPage(const base::ListValue* args); |
35 virtual void InitNewPlan(const CellularDataPlan* plan); | 35 virtual void InitNewPlan(const CellularDataPlan* plan); |
36 virtual void ShowNeedsPlanNotification(const CellularNetwork* cellular); | 36 virtual void ShowNeedsPlanNotification(const CellularNetwork* cellular); |
37 virtual void ShowNoDataNotification(CellularDataPlanType plan_type); | 37 virtual void ShowNoDataNotification(CellularDataPlanType plan_type); |
38 virtual void ShowLowDataNotification(const CellularDataPlan* plan); | 38 virtual void ShowLowDataNotification(const CellularDataPlan* plan); |
39 | 39 |
40 // NetworkLibrary::NetworkManagerObserver implementation. | 40 // NetworkLibrary::NetworkManagerObserver implementation. |
41 virtual void OnNetworkManagerChanged(NetworkLibrary* obj); | 41 virtual void OnNetworkManagerChanged(NetworkLibrary* obj); |
42 // NetworkLibrary::CellularDataPlanObserver implementation. | 42 // NetworkLibrary::CellularDataPlanObserver implementation. |
43 virtual void OnCellularDataPlanChanged(NetworkLibrary* obj); | 43 virtual void OnCellularDataPlanChanged(NetworkLibrary* obj); |
44 // NetworkLibrary::UserActionObserver implementation. | 44 // NetworkLibrary::UserActionObserver implementation. |
(...skipping 22 matching lines...) Expand all Loading... |
67 SystemNotification notification_low_data_; | 67 SystemNotification notification_low_data_; |
68 // Notification for showing no data warning | 68 // Notification for showing no data warning |
69 SystemNotification notification_no_data_; | 69 SystemNotification notification_no_data_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(NetworkMessageObserver); | 71 DISALLOW_COPY_AND_ASSIGN(NetworkMessageObserver); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace chromeos | 74 } // namespace chromeos |
75 | 75 |
76 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ | 76 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ |
OLD | NEW |