1a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved. 2a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 3a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// found in the LICENSE file. 4a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 5a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)#include "components/dom_distiller/android/component_jni_registrar.h" 6a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 7a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)#include "base/android/jni_android.h" 8a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)#include "base/android/jni_registrar.h" 9a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)#include "base/basictypes.h" 10116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#include "components/dom_distiller/core/distilled_page_prefs_android.h" 11116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#include "components/dom_distiller/core/dom_distiller_service_android.h" 12a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)#include "components/dom_distiller/core/url_utils_android.h" 13a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 14a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)namespace dom_distiller { 15a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 16a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)namespace android { 17a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 18a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)static base::android::RegistrationMethod kDomDistillerRegisteredMethods[] = { 19116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch {"DistilledPagePrefs", DistilledPagePrefsAndroid::Register}, 20116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch {"DomDistillerService", DomDistillerServiceAndroid::Register}, 21a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) {"DomDistillerUrlUtils", 22116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch dom_distiller::url_utils::android::RegisterUrlUtils}, 23116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch}; 24a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 25a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)bool RegisterDomDistiller(JNIEnv* env) { 26a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) return base::android::RegisterNativeMethods( 27a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) env, 28a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) kDomDistillerRegisteredMethods, 29a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) arraysize(kDomDistillerRegisteredMethods)); 30a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)} 31a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 32a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)} // namespace android 33a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 34a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)} // namespace dom_distiller 35