OLD | NEW |
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 #include "net/android/network_change_notifier.h" | 5 #include "net/android/network_change_notifier_android.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "jni/network_change_notifier_jni.h" | 9 #include "jni/network_change_notifier_jni.h" |
10 | 10 |
11 namespace net { | 11 namespace net { |
12 namespace android { | 12 namespace android { |
13 | 13 |
14 NetworkChangeNotifier::NetworkChangeNotifier() { | 14 NetworkChangeNotifier::NetworkChangeNotifier() { |
15 JNIEnv* env = base::android::AttachCurrentThread(); | 15 JNIEnv* env = base::android::AttachCurrentThread(); |
(...skipping 24 matching lines...) Expand all Loading... |
40 env, java_network_change_notifier_.obj()); | 40 env, java_network_change_notifier_.obj()); |
41 } | 41 } |
42 | 42 |
43 // static | 43 // static |
44 bool NetworkChangeNotifier::Register(JNIEnv* env) { | 44 bool NetworkChangeNotifier::Register(JNIEnv* env) { |
45 return RegisterNativesImpl(env); | 45 return RegisterNativesImpl(env); |
46 } | 46 } |
47 | 47 |
48 } // namespace android | 48 } // namespace android |
49 } // namespace net | 49 } // namespace net |
OLD | NEW |