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

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

Issue 10693068: Refactor Android's NetworckChangeNotifier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
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_H_
6 #define NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ 6 #define NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "net/base/network_change_notifier_factory.h" 10 #include "net/base/network_change_notifier_factory.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 class NetworkChangeNotifier; 14 class NetworkChangeNotifier;
15 15
16 namespace android { 16 namespace android {
17 17
18 // NetworkChangeNotifierFactory creates Android-specific specialization of 18 class NetworkChangeNotifier;
19 // NetworkChangeNotifier. 19
20 // NetworkChangeNotifierFactory creates a sinfleton Android-specific
Ryan Sleevi 2012/07/02 16:12:21 sinfleton -> singleton
21 // specialization of NetworkChangeNotifier.
20 class NetworkChangeNotifierFactory : public net::NetworkChangeNotifierFactory { 22 class NetworkChangeNotifierFactory : public net::NetworkChangeNotifierFactory {
21 public: 23 public:
22 NetworkChangeNotifierFactory(); 24 NetworkChangeNotifierFactory();
25 static NetworkChangeNotifier* GetInstance();
23 26
24 // Overrides of net::NetworkChangeNotifierFactory. 27 // Overrides of net::NetworkChangeNotifierFactory.
25 virtual net::NetworkChangeNotifier* CreateInstance() OVERRIDE; 28 virtual net::NetworkChangeNotifier* CreateInstance() OVERRIDE;
26 }; 29 };
27 30
28 } // namespace android 31 } // namespace android
29 } // namespace net 32 } // namespace net
30 33
31 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ 34 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_
OLDNEW
« no previous file with comments | « net/android/network_change_notifier_android.cc ('k') | net/android/network_change_notifier_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698