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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/offline_pages/offline_page_bridge.h
diff --git a/chrome/browser/android/offline_pages/offline_page_bridge.h b/chrome/browser/android/offline_pages/offline_page_bridge.h
new file mode 100644
index 0000000000000000000000000000000000000000..473d3b2c22190eb69a279eddaf7da5477efc8a52
--- /dev/null
+++ b/chrome/browser/android/offline_pages/offline_page_bridge.h
@@ -0,0 +1,40 @@
+// Copyright 2015 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.
+
+#ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_
+#define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_
+
+#include "base/android/jni_android.h"
+#include "base/android/jni_weak_ref.h"
+
+class Profile;
+
+namespace offline_pages {
+
+class OfflinePageModel;
+
+namespace android {
+
+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.
+ public:
+ OfflinePageBridge(JNIEnv* env, jobject obj, Profile* profile);
+ void Destroy(JNIEnv*, jobject);
+
+ private:
+
+ JavaObjectWeakGlobalRef weak_java_ref_;
+ // Not owned.
+ OfflinePageModel* offline_page_model_;
+ // Not owned.
+ Profile* profile_;
+ DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge);
+};
+
+bool RegisterOfflinePageBridge(JNIEnv* env);
+
+} // namespace android
+} // namespace offline_pages
+
+#endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_
+

Powered by Google App Engine
This is Rietveld 408576698