| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SYNC_NET_NETWORK_CHANGE_NOTIFIER_IO_THREAD_H_ | |
| 6 #define CHROME_BROWSER_SYNC_NET_NETWORK_CHANGE_NOTIFIER_IO_THREAD_H_ | |
| 7 | |
| 8 // This is a simple NetworkChangeNotifierThread wrapper around an | |
| 9 // IOThread and its NetworkChangeNotifier. | |
| 10 | |
| 11 #include "base/basictypes.h" | |
| 12 #include "chrome/common/net/network_change_notifier_thread.h" | |
| 13 | |
| 14 class IOThread; | |
| 15 class MessageLoop; | |
| 16 | |
| 17 class NetworkChangeNotifierIOThread | |
| 18 : public chrome_common_net::NetworkChangeNotifierThread { | |
| 19 public: | |
| 20 // Does not take ownership of |io_thread|. This instance must live | |
| 21 // no longer than |io_thread|. | |
| 22 explicit NetworkChangeNotifierIOThread(IOThread* io_thread); | |
| 23 | |
| 24 virtual ~NetworkChangeNotifierIOThread(); | |
| 25 | |
| 26 // chrome_common_net::NetworkChangeNotifierThread implementation. | |
| 27 | |
| 28 virtual MessageLoop* GetMessageLoop() const; | |
| 29 | |
| 30 virtual net::NetworkChangeNotifier* GetNetworkChangeNotifier() const; | |
| 31 | |
| 32 private: | |
| 33 IOThread* const io_thread_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierIOThread); | |
| 36 }; | |
| 37 | |
| 38 #endif // CHROME_BROWSER_SYNC_NET_NETWORK_CHANGE_NOTIFIER_IO_THREAD_H_ | |
| OLD | NEW |