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 #include "chrome/browser/dom_distiller/tab_utils_android.h" | 5 #include "chrome/browser/dom_distiller/tab_utils_android.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "base/prefs/pref_service.h" | |
11 #include "chrome/browser/dom_distiller/tab_utils.h" | 10 #include "chrome/browser/dom_distiller/tab_utils.h" |
12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
14 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
15 #include "components/dom_distiller/core/experiments.h" | 14 #include "components/dom_distiller/core/experiments.h" |
| 15 #include "components/prefs/pref_service.h" |
16 #include "components/url_formatter/url_formatter.h" | 16 #include "components/url_formatter/url_formatter.h" |
17 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
18 #include "content/public/common/content_constants.h" | 18 #include "content/public/common/content_constants.h" |
19 #include "jni/DomDistillerTabUtils_jni.h" | 19 #include "jni/DomDistillerTabUtils_jni.h" |
20 #include "net/base/net_util.h" | 20 #include "net/base/net_util.h" |
21 #include "url/gurl.h" | 21 #include "url/gurl.h" |
22 | 22 |
23 namespace android { | 23 namespace android { |
24 | 24 |
25 void DistillCurrentPageAndView(JNIEnv* env, | 25 void DistillCurrentPageAndView(JNIEnv* env, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 const JavaParamRef<jclass>& clazz) { | 71 const JavaParamRef<jclass>& clazz) { |
72 return dom_distiller::GetDistillerHeuristicsType() | 72 return dom_distiller::GetDistillerHeuristicsType() |
73 != dom_distiller::DistillerHeuristicsType::NONE; | 73 != dom_distiller::DistillerHeuristicsType::NONE; |
74 } | 74 } |
75 | 75 |
76 } // namespace android | 76 } // namespace android |
77 | 77 |
78 bool RegisterDomDistillerTabUtils(JNIEnv* env) { | 78 bool RegisterDomDistillerTabUtils(JNIEnv* env) { |
79 return android::RegisterNativesImpl(env); | 79 return android::RegisterNativesImpl(env); |
80 } | 80 } |
OLD | NEW |