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

Side by Side Diff: chrome/browser/android/offline_pages/offline_page_bridge.h

Issue 1232843003: [Offline Pages] Stub of offline pages bridge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving offline_page_bridge.cc/h to c/b/a/offline_pages Created 5 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698