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

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

Issue 1694863003: Refactor the offline page storage to include client namespace and id. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 25 matching lines...) Expand all
36 void OfflinePageDeleted(int64_t bookmark_id) override; 36 void OfflinePageDeleted(int64_t bookmark_id) override;
37 37
38 void GetAllPages(JNIEnv* env, 38 void GetAllPages(JNIEnv* env,
39 const base::android::JavaParamRef<jobject>& obj, 39 const base::android::JavaParamRef<jobject>& obj,
40 const base::android::JavaParamRef<jobject>& j_result_obj); 40 const base::android::JavaParamRef<jobject>& j_result_obj);
41 void GetPagesToCleanUp( 41 void GetPagesToCleanUp(
42 JNIEnv* env, 42 JNIEnv* env,
43 const base::android::JavaParamRef<jobject>& obj, 43 const base::android::JavaParamRef<jobject>& obj,
44 const base::android::JavaParamRef<jobject>& j_result_obj); 44 const base::android::JavaParamRef<jobject>& j_result_obj);
45 45
46 base::android::ScopedJavaLocalRef<jobject> GetPageByBookmarkId( 46 base::android::ScopedJavaLocalRef<jobject> GetPageByOfflineId(
47 JNIEnv* env, 47 JNIEnv* env,
48 const base::android::JavaParamRef<jobject>& obj, 48 const base::android::JavaParamRef<jobject>& obj,
49 jlong bookmark_id); 49 jlong bookmark_id);
fgorski 2016/02/12 21:43:40 nit: offline_id?
bburns 2016/02/20 01:14:17 Done.
50 50
51 base::android::ScopedJavaLocalRef<jobject> GetPageByOnlineURL( 51 base::android::ScopedJavaLocalRef<jobject> GetPageByOnlineURL(
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>& online_url); 54 const base::android::JavaParamRef<jstring>& online_url);
55 55
56 void SavePage(JNIEnv* env, 56 void SavePage(JNIEnv* env,
57 const base::android::JavaParamRef<jobject>& obj, 57 const base::android::JavaParamRef<jobject>& obj,
58 const base::android::JavaParamRef<jobject>& j_callback_obj, 58 const base::android::JavaParamRef<jobject>& j_callback_obj,
59 const base::android::JavaParamRef<jobject>& j_web_contents, 59 const base::android::JavaParamRef<jobject>& j_web_contents,
60 jlong bookmark_id); 60 jlong offline_id,
61 jstring client_id_namespace,
fgorski 2016/02/12 21:43:40 nit: j_ for j_strings, as they cannot be directly
bburns 2016/02/20 01:14:18 Done I think?
62 jstring client_id);
61 63
62 void MarkPageAccessed(JNIEnv* env, 64 void MarkPageAccessed(JNIEnv* env,
63 const base::android::JavaParamRef<jobject>& obj, 65 const base::android::JavaParamRef<jobject>& obj,
64 jlong bookmark_id); 66 jlong bookmark_id);
65 67
66 void DeletePage(JNIEnv* env, 68 void DeletePage(JNIEnv* env,
67 const base::android::JavaParamRef<jobject>& obj, 69 const base::android::JavaParamRef<jobject>& obj,
68 const base::android::JavaParamRef<jobject>& j_callback_obj, 70 const base::android::JavaParamRef<jobject>& j_callback_obj,
69 jlong bookmark_id); 71 jlong bookmark_id);
70 72
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge); 106 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge);
105 }; 107 };
106 108
107 bool RegisterOfflinePageBridge(JNIEnv* env); 109 bool RegisterOfflinePageBridge(JNIEnv* env);
108 110
109 } // namespace android 111 } // namespace android
110 } // namespace offline_pages 112 } // namespace offline_pages
111 113
112 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ 114 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_
113 115
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698