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

Unified Diff: ash/system/network/network_observer.h

Issue 11039034: Move ash/system/network to ash/system/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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 | « ash/system/chromeos/tray_display.cc ('k') | ash/system/network/sms_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/network/network_observer.h
diff --git a/ash/system/network/network_observer.h b/ash/system/network/network_observer.h
deleted file mode 100644
index 2a27b6d98c2779a83e769f084f7a067e957add96..0000000000000000000000000000000000000000
--- a/ash/system/network/network_observer.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H
-#define ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H
-
-#include <vector>
-
-#include "base/string16.h"
-
-namespace ash {
-
-struct NetworkIconInfo;
-
-class NetworkTrayDelegate {
- public:
- virtual ~NetworkTrayDelegate() {}
-
- // Notifies that the |index|-th link on the notification is clicked.
- virtual void NotificationLinkClicked(size_t index) = 0;
-};
-
-class NetworkObserver {
- public:
- enum MessageType {
- // Priority order, highest to lowest.
- ERROR_CONNECT_FAILED,
-
- MESSAGE_DATA_NONE,
- MESSAGE_DATA_LOW,
- MESSAGE_DATA_PROMO,
- };
-
- virtual ~NetworkObserver() {}
-
- virtual void OnNetworkRefresh(const NetworkIconInfo& info) = 0;
-
- // Sets a network message notification. |message_type| identifies the type of
- // message. |delegate|->NotificationLinkClicked() will be called if any of the
- // |links| are clicked (if supplied, |links| may be empty).
- virtual void SetNetworkMessage(NetworkTrayDelegate* delegate,
- MessageType message_type,
- const string16& title,
- const string16& message,
- const std::vector<string16>& links) = 0;
- // Clears the message notification for |message_type|.
- virtual void ClearNetworkMessage(MessageType message_type) = 0;
-
- // Called when the user attempted to toggle Wi-Fi enable/disable.
- // NOTE: Toggling is asynchronous and subsequent calls to query the current
- // state may return the old value.
- virtual void OnWillToggleWifi() = 0;
-};
-
-} // namespace ash
-
-#endif // ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H
« no previous file with comments | « ash/system/chromeos/tray_display.cc ('k') | ash/system/network/sms_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698