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

Unified Diff: chrome/common/net/network_change_notifier_thread.h

Issue 2802015: Massively simplify the NetworkChangeNotifier infrastructure:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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
Index: chrome/common/net/network_change_notifier_thread.h
===================================================================
--- chrome/common/net/network_change_notifier_thread.h (revision 50775)
+++ chrome/common/net/network_change_notifier_thread.h (working copy)
@@ -1,37 +0,0 @@
-// Copyright (c) 2010 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 CHROME_COMMON_NET_NETWORK_CHANGE_NOTIFIER_THREAD_H_
-#define CHROME_COMMON_NET_NETWORK_CHANGE_NOTIFIER_THREAD_H_
-
-// A simple interface that represents a thread which owns a
-// NetworkChangeNotifier.
-
-class MessageLoop;
-
-namespace net {
-class NetworkChangeNotifier;
-} // namespace net
-
-namespace chrome_common_net {
-
-// An instance of this interface must live no longer than the thread
-// it represents and its message loop and network change notifier.
-class NetworkChangeNotifierThread {
- public:
- virtual ~NetworkChangeNotifierThread() {}
-
- // Returns the message loop for the thread that owns the
- // NetworkChangeNotifier. Can be called on any thread.
- virtual MessageLoop* GetMessageLoop() const = 0;
-
- // Returns the NetworkChangeNotifier of the thread. This method
- // must be called only from the owning thread (i.e., by posting a
- // task onto the message loop returned by GetMessageLoop()).
- virtual net::NetworkChangeNotifier* GetNetworkChangeNotifier() const = 0;
-};
-
-} // namespace chrome_common_net
-
-#endif // CHROME_COMMON_NET_NETWORK_CHANGE_NOTIFIER_THREAD_H_

Powered by Google App Engine
This is Rietveld 408576698