| Index: ash/system/chromeos/network/network_state_notifier.h
|
| diff --git a/ash/system/chromeos/network/network_state_notifier.h b/ash/system/chromeos/network/network_state_notifier.h
|
| index 8bac210722ee059626652a9368e5b54fcc0a2da0..c422971819fdf6466fdb395175d2191234d5c881 100644
|
| --- a/ash/system/chromeos/network/network_state_notifier.h
|
| +++ b/ash/system/chromeos/network/network_state_notifier.h
|
| @@ -25,6 +25,8 @@ class NetworkState;
|
|
|
| namespace ash {
|
|
|
| +class NetworkConnect;
|
| +
|
| // This class has two purposes:
|
| // 1. ShowNetworkConnectError() gets called after any user initiated connect
|
| // failure. This will handle displaying an error notification.
|
| @@ -35,7 +37,7 @@ namespace ash {
|
| class ASH_EXPORT NetworkStateNotifier :
|
| public chromeos::NetworkStateHandlerObserver {
|
| public:
|
| - NetworkStateNotifier();
|
| + explicit NetworkStateNotifier(NetworkConnect* network_connect);
|
| virtual ~NetworkStateNotifier();
|
|
|
| // NetworkStateHandlerObserver
|
| @@ -51,6 +53,16 @@ class ASH_EXPORT NetworkStateNotifier :
|
| void ShowNetworkConnectError(const std::string& error_name,
|
| const std::string& service_path);
|
|
|
| + // Show a mobile activation error notification.
|
| + void ShowMobileActivationkError(const std::string& service_path);
|
| +
|
| + // Removes any existing connect notifications.
|
| + void RemoveConnectNotification();
|
| +
|
| + static const char kNetworkConnectNotificationId[];
|
| + static const char kNetworkActivateNotificationId[];
|
| + static const char kNetworkOutOfCreditsNotificationId[];
|
| +
|
| private:
|
| void ConnectErrorPropertiesSucceeded(
|
| const std::string& error_name,
|
| @@ -73,6 +85,10 @@ class ASH_EXPORT NetworkStateNotifier :
|
| void UpdateCellularOutOfCredits(const chromeos::NetworkState* cellular);
|
| void UpdateCellularActivating(const chromeos::NetworkState* cellular);
|
|
|
| + // Invokes network_connect_->ShowNetworkSettings from a callback.
|
| + void ShowNetworkSettings(const std::string& service_path);
|
| +
|
| + NetworkConnect* network_connect_; // unowned
|
| std::string last_default_network_;
|
| bool did_show_out_of_credits_;
|
| base::Time out_of_credits_notify_time_;
|
|
|