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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "components/offline_pages/offline_page_feature.h" | 25 #include "components/offline_pages/offline_page_feature.h" |
26 #include "components/offline_pages/offline_page_item.h" | 26 #include "components/offline_pages/offline_page_item.h" |
27 #include "components/offline_pages/offline_page_model.h" | 27 #include "components/offline_pages/offline_page_model.h" |
28 #include "content/public/browser/browser_context.h" | 28 #include "content/public/browser/browser_context.h" |
29 #include "content/public/browser/web_contents.h" | 29 #include "content/public/browser/web_contents.h" |
30 #include "jni/OfflinePageBridge_jni.h" | 30 #include "jni/OfflinePageBridge_jni.h" |
31 #include "net/base/filename_util.h" | 31 #include "net/base/filename_util.h" |
32 | 32 |
33 using base::android::ConvertJavaStringToUTF8; | 33 using base::android::ConvertJavaStringToUTF8; |
34 using base::android::ConvertUTF8ToJavaString; | 34 using base::android::ConvertUTF8ToJavaString; |
| 35 using base::android::JavaParamRef; |
35 using base::android::ScopedJavaGlobalRef; | 36 using base::android::ScopedJavaGlobalRef; |
36 using base::android::ScopedJavaLocalRef; | 37 using base::android::ScopedJavaLocalRef; |
37 | 38 |
38 namespace offline_pages { | 39 namespace offline_pages { |
39 namespace android { | 40 namespace android { |
40 | 41 |
41 namespace { | 42 namespace { |
42 | 43 |
43 const char kOfflinePageBridgeKey[] = "offline-page-bridge"; | 44 const char kOfflinePageBridgeKey[] = "offline-page-bridge"; |
44 const bool kUserRequested = true; | 45 const bool kUserRequested = true; |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 ConvertUTF8ToJavaString(env, client_id.name_space).obj(), | 418 ConvertUTF8ToJavaString(env, client_id.name_space).obj(), |
418 ConvertUTF8ToJavaString(env, client_id.id).obj()); | 419 ConvertUTF8ToJavaString(env, client_id.id).obj()); |
419 } | 420 } |
420 | 421 |
421 bool RegisterOfflinePageBridge(JNIEnv* env) { | 422 bool RegisterOfflinePageBridge(JNIEnv* env) { |
422 return RegisterNativesImpl(env); | 423 return RegisterNativesImpl(env); |
423 } | 424 } |
424 | 425 |
425 } // namespace android | 426 } // namespace android |
426 } // namespace offline_pages | 427 } // namespace offline_pages |
OLD | NEW |