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

Side by Side Diff: components/dom_distiller/core/dom_distiller_service_android.h

Issue 340403004: Java wrapper for DistilledPagePrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Formatting changes, added test Created 6 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_ANDROID_H_
6 #define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_ANDROID_H_
7
8 #include <jni.h>
9
10 #include "base/android/scoped_java_ref.h"
11 #include "components/dom_distiller/core/dom_distiller_service.h"
12
13 namespace dom_distiller {
14 namespace android {
15
16 class DomDistillerServiceFactoryAndroid;
17
18 // Native implementation of DomDistillerService,
19 // provides access to Java DistilledPagePrefs
20 class DomDistillerServiceAndroid {
21 public:
22 // Friend class so that DomDistillerServiceFactoryAndroid has access to
23 // private member object java_ref_
24 friend class DomDistillerServiceFactoryAndroid;
nyquist 2014/07/09 23:49:05 "Friend declarations should always be in the priva
sunangel 2014/07/10 14:31:53 Done.
25 DomDistillerServiceAndroid(DomDistillerService* service);
26 virtual ~DomDistillerServiceAndroid();
27 static bool Register(JNIEnv* env);
28 jlong GetDistilledPagePrefsPtr(JNIEnv* env, jobject obj);
29
30 private:
31 // Points to a Java instance of DomDistillerService
nyquist 2014/07/09 23:49:05 Nit: Always period at end of comments.
sunangel 2014/07/10 14:31:53 Done.
32 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
33 DomDistillerService* service_;
34 };
35
36 } // namespace android
37 } // namespace dom_distiller
38
39 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_ANDROID_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698