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

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

Issue 690943003: Move network_connect code to ui/chromeos/network (Take 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/ash/system/chromeos/network/network_state_notifier.h b/ui/chromeos/network/network_state_notifier.h
similarity index 90%
rename from ash/system/chromeos/network/network_state_notifier.h
rename to ui/chromeos/network/network_state_notifier.h
index de3dd10fe1ebc403540bb85c205cf9cd2796696b..028391f438633766d096e98d68ebad96dfc78a10 100644
--- a/ash/system/chromeos/network/network_state_notifier.h
+++ b/ui/chromeos/network/network_state_notifier.h
@@ -2,18 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_STATE_NOTIFIER_H_
-#define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_STATE_NOTIFIER_H_
+#ifndef UI_CHROMEOS_NETWORK_NETWORK_STATE_NOTIFIER_H_
+#define UI_CHROMEOS_NETWORK_NETWORK_STATE_NOTIFIER_H_
#include <set>
-#include "ash/ash_export.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "chromeos/network/network_state_handler_observer.h"
+#include "ui/chromeos/ui_chromeos_export.h"
namespace base {
class DictionaryValue;
@@ -23,7 +23,7 @@ namespace chromeos {
class NetworkState;
}
-namespace ash {
+namespace ui {
class NetworkConnect;
@@ -34,7 +34,7 @@ class NetworkConnect;
// notification system.
// 2. It observes NetworkState changes to generate notifications when a
// Cellular network is out of credits.
-class ASH_EXPORT NetworkStateNotifier :
+class UI_CHROMEOS_EXPORT NetworkStateNotifier :
public chromeos::NetworkStateHandlerObserver {
public:
explicit NetworkStateNotifier(NetworkConnect* network_connect);
@@ -59,6 +59,8 @@ class ASH_EXPORT NetworkStateNotifier :
// Removes any existing connect notifications.
void RemoveConnectNotification();
+ static const char kNotifierNetwork[];
+ static const char kNotifierNetworkError[];
static const char kNetworkConnectNotificationId[];
static const char kNetworkActivateNotificationId[];
static const char kNetworkOutOfCreditsNotificationId[];
@@ -98,6 +100,6 @@ class ASH_EXPORT NetworkStateNotifier :
DISALLOW_COPY_AND_ASSIGN(NetworkStateNotifier);
};
-} // namespace ash
+} // namespace ui
-#endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_STATE_NOTIFIER_H_
+#endif // UI_CHROMEOS_NETWORK_NETWORK_STATE_NOTIFIER_H_
« 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