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

Unified Diff: chrome/browser/sync/net/network_change_notifier_io_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/browser/sync/net/network_change_notifier_io_thread.h
===================================================================
--- chrome/browser/sync/net/network_change_notifier_io_thread.h (revision 50775)
+++ chrome/browser/sync/net/network_change_notifier_io_thread.h (working copy)
@@ -1,38 +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_BROWSER_SYNC_NET_NETWORK_CHANGE_NOTIFIER_IO_THREAD_H_
-#define CHROME_BROWSER_SYNC_NET_NETWORK_CHANGE_NOTIFIER_IO_THREAD_H_
-
-// This is a simple NetworkChangeNotifierThread wrapper around an
-// IOThread and its NetworkChangeNotifier.
-
-#include "base/basictypes.h"
-#include "chrome/common/net/network_change_notifier_thread.h"
-
-class IOThread;
-class MessageLoop;
-
-class NetworkChangeNotifierIOThread
- : public chrome_common_net::NetworkChangeNotifierThread {
- public:
- // Does not take ownership of |io_thread|. This instance must live
- // no longer than |io_thread|.
- explicit NetworkChangeNotifierIOThread(IOThread* io_thread);
-
- virtual ~NetworkChangeNotifierIOThread();
-
- // chrome_common_net::NetworkChangeNotifierThread implementation.
-
- virtual MessageLoop* GetMessageLoop() const;
-
- virtual net::NetworkChangeNotifier* GetNetworkChangeNotifier() const;
-
- private:
- IOThread* const io_thread_;
-
- DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierIOThread);
-};
-
-#endif // CHROME_BROWSER_SYNC_NET_NETWORK_CHANGE_NOTIFIER_IO_THREAD_H_

Powered by Google App Engine
This is Rietveld 408576698