Chromium Code Reviews| 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_ |
| + |