Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(663)

Unified Diff: ui/chromeos/network/network_state_notifier.h

Issue 762633002: Use NetworkConnectionObserver to trigger connect failure notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/chromeos/network/network_connect.cc ('k') | ui/chromeos/network/network_state_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/chromeos/network/network_state_notifier.h
diff --git a/ui/chromeos/network/network_state_notifier.h b/ui/chromeos/network/network_state_notifier.h
index 129cc4720a5e6f3ef19e696c2cffc20222eb22c5..092e5feba3a507222fa1f149c764f0397286aaa0 100644
--- a/ui/chromeos/network/network_state_notifier.h
+++ b/ui/chromeos/network/network_state_notifier.h
@@ -12,6 +12,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
+#include "chromeos/network/network_connection_observer.h"
#include "chromeos/network/network_state_handler_observer.h"
#include "ui/chromeos/ui_chromeos_export.h"
@@ -34,12 +35,17 @@ class NetworkConnect;
// notification system.
// 2. It observes NetworkState changes to generate notifications when a
// Cellular network is out of credits.
-class UI_CHROMEOS_EXPORT NetworkStateNotifier :
+class UI_CHROMEOS_EXPORT NetworkStateNotifier
+ : public chromeos::NetworkConnectionObserver,
public chromeos::NetworkStateHandlerObserver {
public:
explicit NetworkStateNotifier(NetworkConnect* network_connect);
~NetworkStateNotifier() override;
+ // NetworkConnectionObserver
+ void ConnectFailed(const std::string& service_path,
+ const std::string& error_name) override;
+
// NetworkStateHandlerObserver
void DefaultNetworkChanged(const chromeos::NetworkState* network) override;
void NetworkPropertiesUpdated(const chromeos::NetworkState* network) override;
« no previous file with comments | « ui/chromeos/network/network_connect.cc ('k') | ui/chromeos/network/network_state_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698