blob: 77c8101887b2107d9b739bd29959afebf33c8efc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/dom_distiller/android/component_jni_registrar.h"
#include "base/android/jni_android.h"
#include "base/android/jni_registrar.h"
#include "base/macros.h"
#include "components/dom_distiller/content/browser/distillable_page_utils_android.h"
#include "components/dom_distiller/core/distilled_page_prefs_android.h"
#include "components/dom_distiller/core/dom_distiller_service_android.h"
#include "components/dom_distiller/core/url_utils_android.h"
namespace dom_distiller {
namespace android {
static base::android::RegistrationMethod kDomDistillerRegisteredMethods[] = {
{"DistilledPagePrefs", DistilledPagePrefsAndroid::Register},
{"DomDistillerService", DomDistillerServiceAndroid::Register},
{"DomDistillerUrlUtils",
dom_distiller::url_utils::android::RegisterUrlUtils},
{"DistillablePageUtils",
dom_distiller::android::RegisterDistillablePageUtils},
};
bool RegisterDomDistiller(JNIEnv* env) {
return base::android::RegisterNativeMethods(
env,
kDomDistillerRegisteredMethods,
arraysize(kDomDistillerRegisteredMethods));
}
} // namespace android
} // namespace dom_distiller
|