OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ | |
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ | |
7 | |
8 #include "base/android/jni_android.h" | |
9 #include "base/android/jni_weak_ref.h" | |
10 | |
11 class Profile; | |
12 | |
13 namespace offline_pages { | |
14 | |
15 class OfflinePageModel; | |
16 | |
17 namespace android { | |
18 | |
19 class OfflinePageBridge { | |
nyquist
2015/07/17 18:51:31
A quick explanatory comment as to why this class e
fgorski
2015/07/17 21:08:33
Done.
| |
20 public: | |
21 OfflinePageBridge(JNIEnv* env, jobject obj, Profile* profile); | |
22 void Destroy(JNIEnv*, jobject); | |
23 | |
24 private: | |
25 | |
26 JavaObjectWeakGlobalRef weak_java_ref_; | |
27 // Not owned. | |
28 OfflinePageModel* offline_page_model_; | |
29 // Not owned. | |
30 Profile* profile_; | |
31 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge); | |
32 }; | |
33 | |
34 bool RegisterOfflinePageBridge(JNIEnv* env); | |
35 | |
36 } // namespace android | |
37 } // namespace offline_pages | |
38 | |
39 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ | |
40 | |
OLD | NEW |