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_android.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/NetworkChangeNotifier_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(); |
16 CreateJavaObject(env); | 16 CreateJavaObject(env); |
17 } | 17 } |
18 | 18 |
19 NetworkChangeNotifier::~NetworkChangeNotifier() { | 19 NetworkChangeNotifier::~NetworkChangeNotifier() { |
(...skipping 24 matching lines...) Expand all Loading... |
44 net::NetworkChangeNotifier::CONNECTION_NONE; | 44 net::NetworkChangeNotifier::CONNECTION_NONE; |
45 } | 45 } |
46 | 46 |
47 // static | 47 // static |
48 bool NetworkChangeNotifier::Register(JNIEnv* env) { | 48 bool NetworkChangeNotifier::Register(JNIEnv* env) { |
49 return RegisterNativesImpl(env); | 49 return RegisterNativesImpl(env); |
50 } | 50 } |
51 | 51 |
52 } // namespace android | 52 } // namespace android |
53 } // namespace net | 53 } // namespace net |
OLD | NEW |