Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(849)

Side by Side Diff: components/dom_distiller/android/component_jni_registrar.cc

Issue 340403004: Java wrapper for DistilledPagePrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Spacing issues Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "components/dom_distiller/android/component_jni_registrar.h" 5 #include "components/dom_distiller/android/component_jni_registrar.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h" 8 #include "base/android/jni_registrar.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "components/dom_distiller/core/profile_utils_android.h"
10 #include "components/dom_distiller/core/url_utils_android.h" 11 #include "components/dom_distiller/core/url_utils_android.h"
11 #include "components/dom_distiller/core/profile_utils_android.h"
12 12
13 namespace dom_distiller { 13 namespace dom_distiller {
14 14
15 namespace android { 15 namespace android {
16 16
17 static base::android::RegistrationMethod kDomDistillerRegisteredMethods[] = { 17 static base::android::RegistrationMethod kDomDistillerRegisteredMethods[] = {
18 {"DomDistillerUrlUtils", 18 {"DomDistillerUrlUtils",
19 dom_distiller::url_utils::android::RegisterUrlUtils}, 19 dom_distiller::url_utils::android::RegisterUrlUtils},
20 {"ProfileUtils", 20 {"ProfileUtils",
21 dom_distiller::profile_utils::android::RegisterProfileUtils}, 21 dom_distiller::profile_utils::android::RegisterProfileUtils},
22 }; 22 };
23 23
24 bool RegisterDomDistiller(JNIEnv* env) { 24 bool RegisterDomDistiller(JNIEnv* env) {
25 return base::android::RegisterNativeMethods( 25 return base::android::RegisterNativeMethods(
26 env, 26 env,
27 kDomDistillerRegisteredMethods, 27 kDomDistillerRegisteredMethods,
28 arraysize(kDomDistillerRegisteredMethods)); 28 arraysize(kDomDistillerRegisteredMethods));
29 } 29 }
30 30
31 } // namespace android 31 } // namespace android
32 32
33 } // namespace dom_distiller 33 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698