OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMECAST_NET_NETWORK_CHANGE_NOTIFIER_CAST_H_ | 5 #ifndef CHROMECAST_NET_NETWORK_CHANGE_NOTIFIER_CAST_H_ |
6 #define CHROMECAST_NET_NETWORK_CHANGE_NOTIFIER_CAST_H_ | 6 #define CHROMECAST_NET_NETWORK_CHANGE_NOTIFIER_CAST_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "net/base/network_change_notifier.h" | 10 #include "net/base/network_change_notifier.h" |
11 | 11 |
12 namespace chromecast { | 12 namespace chromecast { |
13 | 13 |
14 // TODO(lcwu): http://crbug.com/391064. This is a place holder for | 14 // TODO(lcwu): http://crbug.com/391064. This is a place holder for |
15 // cast-specific NetworkChangeNotifier implementation. The actual | 15 // cast-specific NetworkChangeNotifier implementation. The actual |
16 // implementation of this class will come in later CLs. | 16 // implementation of this class will come in later CLs. |
17 class NetworkChangeNotifierCast : public net::NetworkChangeNotifier { | 17 class NetworkChangeNotifierCast : public net::NetworkChangeNotifier { |
18 public: | 18 public: |
19 NetworkChangeNotifierCast(); | 19 NetworkChangeNotifierCast(); |
20 virtual ~NetworkChangeNotifierCast(); | 20 ~NetworkChangeNotifierCast() override; |
21 | 21 |
22 // net::NetworkChangeNotifier implementation: | 22 // net::NetworkChangeNotifier implementation: |
23 virtual net::NetworkChangeNotifier::ConnectionType | 23 net::NetworkChangeNotifier::ConnectionType |
24 GetCurrentConnectionType() const override; | 24 GetCurrentConnectionType() const override; |
25 | 25 |
26 private: | 26 private: |
27 friend class NetworkChangeNotifierCastTest; | 27 friend class NetworkChangeNotifierCastTest; |
28 | 28 |
29 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierCast); | 29 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierCast); |
30 }; | 30 }; |
31 | 31 |
32 } // namespace chromecast | 32 } // namespace chromecast |
33 | 33 |
34 #endif // CHROMECAST_NET_NETWORK_CHANGE_NOTIFIER_CAST_H_ | 34 #endif // CHROMECAST_NET_NETWORK_CHANGE_NOTIFIER_CAST_H_ |
OLD | NEW |