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

Side by Side Diff: chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.h

Issue 2322833002: Support serving offline page by offline ID (Closed)
Patch Set: Remove unused variable to fix trybot Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_BRI DGE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_BRI DGE_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_BRI DGE_H_ 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_BRI DGE_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 base::android::ScopedJavaLocalRef<jobject> GetItemByGuid( 46 base::android::ScopedJavaLocalRef<jobject> GetItemByGuid(
47 JNIEnv* env, 47 JNIEnv* env,
48 const base::android::JavaParamRef<jobject>& obj, 48 const base::android::JavaParamRef<jobject>& obj,
49 const base::android::JavaParamRef<jstring>& j_guid); 49 const base::android::JavaParamRef<jstring>& j_guid);
50 50
51 void DeleteItemByGuid( 51 void DeleteItemByGuid(
52 JNIEnv* env, 52 JNIEnv* env,
53 const base::android::JavaParamRef<jobject>& obj, 53 const base::android::JavaParamRef<jobject>& obj,
54 const base::android::JavaParamRef<jstring>& j_guid); 54 const base::android::JavaParamRef<jstring>& j_guid);
55 55
56 base::android::ScopedJavaLocalRef<jstring> GetOfflineUrlByGuid( 56 jlong GetOfflineIdByGuid(
57 JNIEnv* env, 57 JNIEnv* env,
58 const base::android::JavaParamRef<jobject>& obj, 58 const base::android::JavaParamRef<jobject>& obj,
59 const base::android::JavaParamRef<jstring>& j_guid); 59 const base::android::JavaParamRef<jstring>& j_guid);
60 60
61 void StartDownload( 61 void StartDownload(
62 JNIEnv* env, 62 JNIEnv* env,
63 const base::android::JavaParamRef<jobject>& obj, 63 const base::android::JavaParamRef<jobject>& obj,
64 const base::android::JavaParamRef<jobject>& j_tab); 64 const base::android::JavaParamRef<jobject>& j_tab);
65 65
66 void CancelDownload(JNIEnv* env, 66 void CancelDownload(JNIEnv* env,
(...skipping 25 matching lines...) Expand all
92 // Not owned. 92 // Not owned.
93 content::BrowserContext* browser_context_; 93 content::BrowserContext* browser_context_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(OfflinePageDownloadBridge); 95 DISALLOW_COPY_AND_ASSIGN(OfflinePageDownloadBridge);
96 }; 96 };
97 97
98 } // namespace android 98 } // namespace android
99 } // namespace offline_pages 99 } // namespace offline_pages
100 100
101 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_ BRIDGE_H_ 101 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_ BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698