| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/android/callback_android.h" | 5 #include "base/android/callback_android.h" |
| 6 #include "base/android/scoped_java_ref.h" | 6 #include "base/android/scoped_java_ref.h" |
| 7 #include "chrome/browser/android/offline_pages/background_scheduler_bridge.h" | 7 #include "chrome/browser/android/offline_pages/background_scheduler_bridge.h" |
| 8 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" | 8 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" |
| 9 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" | 9 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/profiles/profile_manager.h" | 11 #include "chrome/browser/profiles/profile_manager.h" |
| 12 #include "components/offline_pages/background/device_conditions.h" | 12 #include "components/offline_pages/core/background/device_conditions.h" |
| 13 #include "components/offline_pages/background/request_coordinator.h" | 13 #include "components/offline_pages/core/background/request_coordinator.h" |
| 14 #include "jni/BackgroundSchedulerBridge_jni.h" | 14 #include "jni/BackgroundSchedulerBridge_jni.h" |
| 15 | 15 |
| 16 using base::android::JavaParamRef; | 16 using base::android::JavaParamRef; |
| 17 using base::android::ScopedJavaGlobalRef; | 17 using base::android::ScopedJavaGlobalRef; |
| 18 using base::android::ScopedJavaLocalRef; | 18 using base::android::ScopedJavaLocalRef; |
| 19 | 19 |
| 20 namespace offline_pages { | 20 namespace offline_pages { |
| 21 namespace android { | 21 namespace android { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 env, require_power_connected, minimum_battery_percentage, | 90 env, require_power_connected, minimum_battery_percentage, |
| 91 require_unmetered_network); | 91 require_unmetered_network); |
| 92 } | 92 } |
| 93 | 93 |
| 94 bool RegisterBackgroundSchedulerBridge(JNIEnv* env) { | 94 bool RegisterBackgroundSchedulerBridge(JNIEnv* env) { |
| 95 return RegisterNativesImpl(env); | 95 return RegisterNativesImpl(env); |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace android | 98 } // namespace android |
| 99 } // namespace offline_pages | 99 } // namespace offline_pages |
| OLD | NEW |