OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_ANDROID_NET_EXTERNAL_ESTIMATE_PROVIDER_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_NET_EXTERNAL_ESTIMATE_PROVIDER_ANDROID_H_ |
6 #define CHROME_BROWSER_ANDROID_NET_EXTERNAL_ESTIMATE_PROVIDER_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_NET_EXTERNAL_ESTIMATE_PROVIDER_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/thread_task_runner_handle.h" | |
16 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
| 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "net/base/network_change_notifier.h" | 18 #include "net/base/network_change_notifier.h" |
19 #include "net/nqe/external_estimate_provider.h" | 19 #include "net/nqe/external_estimate_provider.h" |
20 | 20 |
21 namespace chrome { | 21 namespace chrome { |
22 namespace android { | 22 namespace android { |
23 | 23 |
24 // Native class that calls Java code exposed by | 24 // Native class that calls Java code exposed by |
25 // ExternalEstimateProviderAndroidHelper.java. Provides network quality | 25 // ExternalEstimateProviderAndroidHelper.java. Provides network quality |
26 // estimates as provided by Android. Estimates are automatically updated on a | 26 // estimates as provided by Android. Estimates are automatically updated on a |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(ExternalEstimateProviderAndroid); | 82 DISALLOW_COPY_AND_ASSIGN(ExternalEstimateProviderAndroid); |
83 }; | 83 }; |
84 | 84 |
85 bool RegisterExternalEstimateProviderAndroid(JNIEnv* env); | 85 bool RegisterExternalEstimateProviderAndroid(JNIEnv* env); |
86 | 86 |
87 } // namespace android | 87 } // namespace android |
88 } // namespace chrome | 88 } // namespace chrome |
89 | 89 |
90 #endif // CHROME_BROWSER_ANDROID_NET_EXTERNAL_ESTIMATE_PROVIDER_ANDROID_H_ | 90 #endif // CHROME_BROWSER_ANDROID_NET_EXTERNAL_ESTIMATE_PROVIDER_ANDROID_H_ |
OLD | NEW |