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_delegate_android.h" | 5 #include "net/android/network_change_notifier_delegate_android.h" |
6 | 6 |
| 7 #include "base/android/context_utils.h" |
7 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
8 #include "base/logging.h" | 9 #include "base/logging.h" |
9 #include "jni/NetworkChangeNotifier_jni.h" | 10 #include "jni/NetworkChangeNotifier_jni.h" |
10 #include "net/android/network_change_notifier_android.h" | 11 #include "net/android/network_change_notifier_android.h" |
11 | 12 |
12 namespace net { | 13 namespace net { |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 // Converts a Java side connection type (integer) to | 17 // Converts a Java side connection type (integer) to |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 } | 350 } |
350 | 351 |
351 void NetworkChangeNotifierDelegateAndroid::FakeDefaultNetwork( | 352 void NetworkChangeNotifierDelegateAndroid::FakeDefaultNetwork( |
352 NetworkChangeNotifier::NetworkHandle network, | 353 NetworkChangeNotifier::NetworkHandle network, |
353 ConnectionType type) { | 354 ConnectionType type) { |
354 JNIEnv* env = base::android::AttachCurrentThread(); | 355 JNIEnv* env = base::android::AttachCurrentThread(); |
355 Java_NetworkChangeNotifier_fakeDefaultNetwork(env, network, type); | 356 Java_NetworkChangeNotifier_fakeDefaultNetwork(env, network, type); |
356 } | 357 } |
357 | 358 |
358 } // namespace net | 359 } // namespace net |
OLD | NEW |