| 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 "components/dom_distiller/content/browser/distillable_page_utils_androi
d.h" | 5 #include "components/dom_distiller/content/browser/distillable_page_utils_androi
d.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 9 #include "components/dom_distiller/content/browser/distillable_page_utils.h" | 10 #include "components/dom_distiller/content/browser/distillable_page_utils.h" |
| 10 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
| 11 #include "jni/DistillablePageUtils_jni.h" | 12 #include "jni/DistillablePageUtils_jni.h" |
| 12 | 13 |
| 13 using base::android::ScopedJavaGlobalRef; | 14 using base::android::ScopedJavaGlobalRef; |
| 14 | 15 |
| 15 namespace dom_distiller { | 16 namespace dom_distiller { |
| 16 namespace android { | 17 namespace android { |
| 17 namespace { | 18 namespace { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 base::Bind(OnIsPageDistillableUpdate, base::Owned(callback_holder)); | 74 base::Bind(OnIsPageDistillableUpdate, base::Owned(callback_holder)); |
| 74 setDelegate(web_contents, delegate); | 75 setDelegate(web_contents, delegate); |
| 75 } | 76 } |
| 76 | 77 |
| 77 bool RegisterDistillablePageUtils(JNIEnv* env) { | 78 bool RegisterDistillablePageUtils(JNIEnv* env) { |
| 78 return RegisterNativesImpl(env); | 79 return RegisterNativesImpl(env); |
| 79 } | 80 } |
| 80 | 81 |
| 81 } | 82 } |
| 82 } | 83 } |
| OLD | NEW |