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

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

Issue 2462653002: Showing previews UI for Offline Previews (Closed)
Patch Set: fgorski comment Created 4 years, 1 month 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const base::android::JavaParamRef<jstring>& j_namespace, 91 const base::android::JavaParamRef<jstring>& j_namespace,
92 const base::android::JavaParamRef<jstring>& j_client_id); 92 const base::android::JavaParamRef<jstring>& j_client_id);
93 93
94 void SavePageLater(JNIEnv* env, 94 void SavePageLater(JNIEnv* env,
95 const base::android::JavaParamRef<jobject>& obj, 95 const base::android::JavaParamRef<jobject>& obj,
96 const base::android::JavaParamRef<jstring>& url, 96 const base::android::JavaParamRef<jstring>& url,
97 const base::android::JavaParamRef<jstring>& j_namespace, 97 const base::android::JavaParamRef<jstring>& j_namespace,
98 const base::android::JavaParamRef<jstring>& j_client_id, 98 const base::android::JavaParamRef<jstring>& j_client_id,
99 jboolean user_requested); 99 jboolean user_requested);
100 100
101 jboolean IsShowingOfflinePreview(
102 JNIEnv* env,
103 const base::android::JavaParamRef<jobject>& obj,
104 const base::android::JavaParamRef<jobject>& j_web_contents);
105
101 base::android::ScopedJavaLocalRef<jstring> GetOfflinePageHeaderForReload( 106 base::android::ScopedJavaLocalRef<jstring> GetOfflinePageHeaderForReload(
102 JNIEnv* env, 107 JNIEnv* env,
103 const base::android::JavaParamRef<jobject>& obj, 108 const base::android::JavaParamRef<jobject>& obj,
104 const base::android::JavaParamRef<jobject>& j_web_contents); 109 const base::android::JavaParamRef<jobject>& j_web_contents);
105 110
106 void GetRequestsInQueue( 111 void GetRequestsInQueue(
107 JNIEnv* env, 112 JNIEnv* env,
108 const base::android::JavaParamRef<jobject>& obj, 113 const base::android::JavaParamRef<jobject>& obj,
109 const base::android::JavaParamRef<jobject>& j_callback_obj); 114 const base::android::JavaParamRef<jobject>& j_callback_obj);
110 115
(...skipping 21 matching lines...) Expand all
132 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge); 137 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge);
133 }; 138 };
134 139
135 bool RegisterOfflinePageBridge(JNIEnv* env); 140 bool RegisterOfflinePageBridge(JNIEnv* env);
136 141
137 } // namespace android 142 } // namespace android
138 } // namespace offline_pages 143 } // namespace offline_pages
139 144
140 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ 145 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_
141 146
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698