summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/network_message_observer.h
diff options
context:
space:
mode:
authorchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-09 19:48:05 +0000
committerchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-09 19:48:05 +0000
commit8b3d17ed03c13b1be6de114485e9aa85d8f1eab1 (patch)
treeb5d9c816fcc1a3d35269865b5c9ce16a89a3d35b /chrome/browser/chromeos/network_message_observer.h
parentc0a837462e1d989282060921db63068913b39ae4 (diff)
downloadchromium_src-8b3d17ed03c13b1be6de114485e9aa85d8f1eab1.zip
chromium_src-8b3d17ed03c13b1be6de114485e9aa85d8f1eab1.tar.gz
chromium_src-8b3d17ed03c13b1be6de114485e9aa85d8f1eab1.tar.bz2
Only show notification for low 3g data for the last data-based plan.
BUG=chromium-os:10010 TEST=manual Review URL: http://codereview.chromium.org/6347044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74319 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/network_message_observer.h')
-rw-r--r--chrome/browser/chromeos/network_message_observer.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/network_message_observer.h b/chrome/browser/chromeos/network_message_observer.h
index ae7d85d..4836e03 100644
--- a/chrome/browser/chromeos/network_message_observer.h
+++ b/chrome/browser/chromeos/network_message_observer.h
@@ -28,9 +28,15 @@ class NetworkMessageObserver : public NetworkLibrary::NetworkManagerObserver,
typedef std::map<std::string, WifiNetwork*> ServicePathWifiMap;
typedef std::map<std::string, CellularNetwork*> ServicePathCellularMap;
+ static bool IsApplicableBackupPlan(const CellularDataPlan* plan,
+ const CellularDataPlan* other_plan);
private:
virtual void OpenMobileSetupPage(const ListValue* args);
virtual void OpenMoreInfoPage(const ListValue* args);
+ virtual void HideDataNotifications();
+ virtual void InitNewPlan(const CellularDataPlan* plan);
+ virtual void ShowNoDataNotification(const CellularDataPlan* plan);
+ virtual void ShowLowDataNotification(const CellularDataPlan* plan);
// NetworkLibrary::NetworkManagerObserver implementation.
virtual void OnNetworkManagerChanged(NetworkLibrary* obj);
@@ -44,9 +50,8 @@ class NetworkMessageObserver : public NetworkLibrary::NetworkManagerObserver,
// Current connect celluar service path.
std::string cellular_service_path_;
- // Last cellular data plan name and type.
- std::string cellular_data_plan_name_;
- CellularDataPlanType cellular_data_plan_type_;
+ // Last cellular data plan unique id.
+ std::string cellular_data_plan_unique_id_;
// Notification for connection errors
SystemNotification notification_connection_error_;