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

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

Issue 10383229: Cleanup: Remove unneeded scoped_ptr.h includes from net. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win Created 8 years, 7 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
« no previous file with comments | « chrome_frame/urlmon_upload_data_stream.h ('k') | net/base/crl_set.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ANDROID_H_ 5 #ifndef NET_ANDROID_NETWORK_CHANGE_NOTIFIER_ANDROID_H_
6 #define NET_ANDROID_NETWORK_CHANGE_NOTIFIER_ANDROID_H_ 6 #define NET_ANDROID_NETWORK_CHANGE_NOTIFIER_ANDROID_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "net/base/network_change_notifier.h" 12 #include "net/base/network_change_notifier.h"
14 13
15 namespace net { 14 namespace net {
16 namespace android { 15 namespace android {
17 16
18 class NetworkChangeNotifier : public net::NetworkChangeNotifier { 17 class NetworkChangeNotifier : public net::NetworkChangeNotifier {
19 public: 18 public:
20 NetworkChangeNotifier(); 19 NetworkChangeNotifier();
21 virtual ~NetworkChangeNotifier(); 20 virtual ~NetworkChangeNotifier();
22 21
23 void NotifyObservers(JNIEnv* env, jobject obj); 22 void NotifyObservers(JNIEnv* env, jobject obj);
24 23
25 static bool Register(JNIEnv* env); 24 static bool Register(JNIEnv* env);
26 25
27 private: 26 private:
28 void CreateJavaObject(JNIEnv* env); 27 void CreateJavaObject(JNIEnv* env);
29 28
30 // NetworkChangeNotifier: 29 // NetworkChangeNotifier:
31 virtual bool IsCurrentlyOffline() const OVERRIDE; 30 virtual bool IsCurrentlyOffline() const OVERRIDE;
32 31
33 base::android::ScopedJavaGlobalRef<jobject> java_network_change_notifier_; 32 base::android::ScopedJavaGlobalRef<jobject> java_network_change_notifier_;
34 33
35 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifier); 34 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifier);
36 }; 35 };
37 36
38 } // namespace android 37 } // namespace android
39 } // namespace net 38 } // namespace net
40 39
41 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_ANDROID_H_ 40 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome_frame/urlmon_upload_data_stream.h ('k') | net/base/crl_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698