| 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 #include "chrome/browser/android/net/external_estimate_provider_android.h" | 5 #include "chrome/browser/android/net/external_estimate_provider_android.h" | 
| 6 | 6 | 
| 7 #include <stdint.h> | 7 #include <stdint.h> | 
| 8 | 8 | 
|  | 9 #include "base/android/context_utils.h" | 
| 9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" | 
| 10 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" | 
| 11 #include "jni/ExternalEstimateProviderAndroid_jni.h" | 12 #include "jni/ExternalEstimateProviderAndroid_jni.h" | 
| 12 | 13 | 
| 13 namespace chrome { | 14 namespace chrome { | 
| 14 namespace android { | 15 namespace android { | 
| 15 | 16 | 
| 16 ExternalEstimateProviderAndroid::ExternalEstimateProviderAndroid() | 17 ExternalEstimateProviderAndroid::ExternalEstimateProviderAndroid() | 
| 17     : task_runner_(nullptr), delegate_(nullptr), weak_factory_(this) { | 18     : task_runner_(nullptr), delegate_(nullptr), weak_factory_(this) { | 
| 18   if (base::MessageLoop::current()) | 19   if (base::MessageLoop::current()) | 
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 122   if (delegate_) | 123   if (delegate_) | 
| 123     delegate_->OnUpdatedEstimateAvailable(); | 124     delegate_->OnUpdatedEstimateAvailable(); | 
| 124 } | 125 } | 
| 125 | 126 | 
| 126 bool RegisterExternalEstimateProviderAndroid(JNIEnv* env) { | 127 bool RegisterExternalEstimateProviderAndroid(JNIEnv* env) { | 
| 127   return RegisterNativesImpl(env); | 128   return RegisterNativesImpl(env); | 
| 128 } | 129 } | 
| 129 | 130 | 
| 130 }  // namespace android | 131 }  // namespace android | 
| 131 }  // namespace chrome | 132 }  // namespace chrome | 
| OLD | NEW | 
|---|