| 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/offline_pages/offline_page_bridge.h" | 5 #include "chrome/browser/android/offline_pages/offline_page_bridge.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/android/jni_array.h" | 10 #include "base/android/jni_array.h" |
| 11 #include "base/android/jni_string.h" | 11 #include "base/android/jni_string.h" |
| 12 #include "chrome/browser/android/offline_pages/offline_page_mhtml_archiver.h" | 12 #include "chrome/browser/android/offline_pages/offline_page_mhtml_archiver.h" |
| 13 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" | 13 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" |
| 14 #include "chrome/browser/android/offline_pages/offline_page_utils.h" | 14 #include "chrome/browser/android/offline_pages/offline_page_utils.h" |
| 15 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" | 15 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/profiles/profile_android.h" | 17 #include "chrome/browser/profiles/profile_android.h" |
| 18 #include "components/offline_pages/background/request_coordinator.h" | 18 #include "components/offline_pages/background/request_coordinator.h" |
| 19 #include "components/offline_pages/background/save_page_request.h" | 19 #include "components/offline_pages/background/save_page_request.h" |
| 20 #include "components/offline_pages/offline_page_feature.h" | 20 #include "components/offline_pages/offline_page_feature.h" |
| 21 #include "components/offline_pages/offline_page_item.h" | 21 #include "components/offline_pages/offline_page_item.h" |
| 22 #include "components/offline_pages/offline_page_model.h" | 22 #include "components/offline_pages/offline_page_model.h" |
| 23 #include "components/offline_pages/proto/offline_pages.pb.h" | |
| 24 #include "content/public/browser/browser_context.h" | 23 #include "content/public/browser/browser_context.h" |
| 25 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
| 26 #include "jni/OfflinePageBridge_jni.h" | 25 #include "jni/OfflinePageBridge_jni.h" |
| 27 #include "net/base/filename_util.h" | 26 #include "net/base/filename_util.h" |
| 28 | 27 |
| 29 using base::android::ConvertJavaStringToUTF8; | 28 using base::android::ConvertJavaStringToUTF8; |
| 30 using base::android::ConvertUTF8ToJavaString; | 29 using base::android::ConvertUTF8ToJavaString; |
| 31 using base::android::ScopedJavaGlobalRef; | 30 using base::android::ScopedJavaGlobalRef; |
| 32 using base::android::ScopedJavaLocalRef; | 31 using base::android::ScopedJavaLocalRef; |
| 33 | 32 |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 ConvertUTF8ToJavaString(env, client_id.name_space).obj(), | 406 ConvertUTF8ToJavaString(env, client_id.name_space).obj(), |
| 408 ConvertUTF8ToJavaString(env, client_id.id).obj()); | 407 ConvertUTF8ToJavaString(env, client_id.id).obj()); |
| 409 } | 408 } |
| 410 | 409 |
| 411 bool RegisterOfflinePageBridge(JNIEnv* env) { | 410 bool RegisterOfflinePageBridge(JNIEnv* env) { |
| 412 return RegisterNativesImpl(env); | 411 return RegisterNativesImpl(env); |
| 413 } | 412 } |
| 414 | 413 |
| 415 } // namespace android | 414 } // namespace android |
| 416 } // namespace offline_pages | 415 } // namespace offline_pages |
| OLD | NEW |