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

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

Issue 2588253002: Enable download page action for error page (Closed)
Patch Set: Address download feedback Created 3 years, 11 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
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const base::android::JavaParamRef<jstring>& url, 97 const base::android::JavaParamRef<jstring>& url,
98 const base::android::JavaParamRef<jstring>& j_namespace, 98 const base::android::JavaParamRef<jstring>& j_namespace,
99 const base::android::JavaParamRef<jstring>& j_client_id, 99 const base::android::JavaParamRef<jstring>& j_client_id,
100 jboolean user_requested); 100 jboolean user_requested);
101 101
102 jboolean IsShowingOfflinePreview( 102 jboolean IsShowingOfflinePreview(
103 JNIEnv* env, 103 JNIEnv* env,
104 const base::android::JavaParamRef<jobject>& obj, 104 const base::android::JavaParamRef<jobject>& obj,
105 const base::android::JavaParamRef<jobject>& j_web_contents); 105 const base::android::JavaParamRef<jobject>& j_web_contents);
106 106
107 jboolean IsShowingDownloadButtonInErrorPage(
108 JNIEnv* env,
109 const base::android::JavaParamRef<jobject>& obj,
110 const base::android::JavaParamRef<jobject>& j_web_contents);
111
107 base::android::ScopedJavaLocalRef<jstring> GetOfflinePageHeaderForReload( 112 base::android::ScopedJavaLocalRef<jstring> GetOfflinePageHeaderForReload(
108 JNIEnv* env, 113 JNIEnv* env,
109 const base::android::JavaParamRef<jobject>& obj, 114 const base::android::JavaParamRef<jobject>& obj,
110 const base::android::JavaParamRef<jobject>& j_web_contents); 115 const base::android::JavaParamRef<jobject>& j_web_contents);
111 116
112 void GetRequestsInQueue( 117 void GetRequestsInQueue(
113 JNIEnv* env, 118 JNIEnv* env,
114 const base::android::JavaParamRef<jobject>& obj, 119 const base::android::JavaParamRef<jobject>& obj,
115 const base::android::JavaParamRef<jobject>& j_callback_obj); 120 const base::android::JavaParamRef<jobject>& j_callback_obj);
116 121
(...skipping 21 matching lines...) Expand all
138 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge); 143 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge);
139 }; 144 };
140 145
141 bool RegisterOfflinePageBridge(JNIEnv* env); 146 bool RegisterOfflinePageBridge(JNIEnv* env);
142 147
143 } // namespace android 148 } // namespace android
144 } // namespace offline_pages 149 } // namespace offline_pages
145 150
146 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ 151 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_
147 152
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698