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

Side by Side Diff: net/android/network_change_notifier_factory_android.h

Issue 10928193: Add native-side unit test for Android NetworkChangeNotifier (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebasing Created 8 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ 5 #ifndef NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_ANDROID_H_
6 #define NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ 6 #define NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_ANDROID_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "net/base/network_change_notifier_factory.h" 9 #include "net/base/network_change_notifier_factory.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 class NetworkChangeNotifier; 13 class NetworkChangeNotifier;
14 14
15 namespace android {
16
17 // NetworkChangeNotifierFactory creates Android-specific specialization of 15 // NetworkChangeNotifierFactory creates Android-specific specialization of
18 // NetworkChangeNotifier. 16 // NetworkChangeNotifier.
19 class NetworkChangeNotifierFactory : public net::NetworkChangeNotifierFactory { 17 class NetworkChangeNotifierFactoryAndroid :
18 public NetworkChangeNotifierFactory {
20 public: 19 public:
21 NetworkChangeNotifierFactory(); 20 NetworkChangeNotifierFactoryAndroid();
22 21
23 // Overrides of net::NetworkChangeNotifierFactory. 22 // Overrides of NetworkChangeNotifierFactory.
24 virtual net::NetworkChangeNotifier* CreateInstance() OVERRIDE; 23 virtual NetworkChangeNotifier* CreateInstance() OVERRIDE;
25 }; 24 };
26 25
27 } // namespace android
28 } // namespace net 26 } // namespace net
29 27
30 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ 28 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_
OLDNEW
« no previous file with comments | « net/android/network_change_notifier_factory.cc ('k') | net/android/network_change_notifier_factory_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698