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

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

Issue 1739503002: Makes the OfflinePageBridge.getAllPages method asynchronous. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix some comments. Created 4 years, 8 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const base::android::JavaParamRef<jobject>& obj, 73 const base::android::JavaParamRef<jobject>& obj,
74 const base::android::JavaParamRef<jobject>& j_callback_obj, 74 const base::android::JavaParamRef<jobject>& j_callback_obj,
75 const base::android::JavaParamRef<jobject>& j_web_contents, 75 const base::android::JavaParamRef<jobject>& j_web_contents,
76 const base::android::JavaParamRef<jstring>& j_client_id_namespace, 76 const base::android::JavaParamRef<jstring>& j_client_id_namespace,
77 const base::android::JavaParamRef<jstring>& j_client_id); 77 const base::android::JavaParamRef<jstring>& j_client_id);
78 78
79 void MarkPageAccessed(JNIEnv* env, 79 void MarkPageAccessed(JNIEnv* env,
80 const base::android::JavaParamRef<jobject>& obj, 80 const base::android::JavaParamRef<jobject>& obj,
81 jlong offline_id); 81 jlong offline_id);
82 82
83 void DeletePage(JNIEnv* env,
84 const base::android::JavaParamRef<jobject>& obj,
85 const base::android::JavaParamRef<jobject>& j_callback_obj,
86 jlong offline_id);
87
88 void DeletePages( 83 void DeletePages(
89 JNIEnv* env, 84 JNIEnv* env,
90 const base::android::JavaParamRef<jobject>& obj, 85 const base::android::JavaParamRef<jobject>& obj,
91 const base::android::JavaParamRef<jobject>& j_callback_obj, 86 const base::android::JavaParamRef<jobject>& j_callback_obj,
92 const base::android::JavaParamRef<jlongArray>& j_offline_ids_array); 87 const base::android::JavaParamRef<jlongArray>& j_offline_ids_array);
93 88
94 void CheckMetadataConsistency( 89 void CheckMetadataConsistency(
95 JNIEnv* env, 90 JNIEnv* env,
96 const base::android::JavaParamRef<jobject>& obj); 91 const base::android::JavaParamRef<jobject>& obj);
97 92
(...skipping 30 matching lines...) Expand all
128 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge); 123 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge);
129 }; 124 };
130 125
131 bool RegisterOfflinePageBridge(JNIEnv* env); 126 bool RegisterOfflinePageBridge(JNIEnv* env);
132 127
133 } // namespace android 128 } // namespace android
134 } // namespace offline_pages 129 } // namespace offline_pages
135 130
136 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ 131 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_
137 132
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698