OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_ANDROID_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_ANDROID_H_ |
6 #define COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_ANDROID_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "base/macros.h" |
11 #include "components/dom_distiller/core/distilled_page_prefs.h" | 12 #include "components/dom_distiller/core/distilled_page_prefs.h" |
12 | 13 |
13 namespace dom_distiller { | 14 namespace dom_distiller { |
14 namespace android { | 15 namespace android { |
15 | 16 |
16 class DistilledPagePrefsAndroid { | 17 class DistilledPagePrefsAndroid { |
17 public: | 18 public: |
18 DistilledPagePrefsAndroid(JNIEnv* env, | 19 DistilledPagePrefsAndroid(JNIEnv* env, |
19 jobject obj, | 20 jobject obj, |
20 DistilledPagePrefs* distilled_page_prefs_ptr); | 21 DistilledPagePrefs* distilled_page_prefs_ptr); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 const base::android::JavaParamRef<jobject>& obj); | 65 const base::android::JavaParamRef<jobject>& obj); |
65 | 66 |
66 private: | 67 private: |
67 base::android::ScopedJavaGlobalRef<jobject> java_ref_; | 68 base::android::ScopedJavaGlobalRef<jobject> java_ref_; |
68 }; | 69 }; |
69 | 70 |
70 } // namespace android | 71 } // namespace android |
71 } // namespace dom_distiller | 72 } // namespace dom_distiller |
72 | 73 |
73 #endif // COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_ANDROID_H_ | 74 #endif // COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_ANDROID_H_ |
OLD | NEW |