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

Unified Diff: chrome/browser/android/offline_pages/offline_page_bridge.h

Issue 1307753002: [Offline pages] Adding capability to free up space used by Offline pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Converting jlongarray to std::vector<int64> Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/offline_pages/offline_page_bridge.h
diff --git a/chrome/browser/android/offline_pages/offline_page_bridge.h b/chrome/browser/android/offline_pages/offline_page_bridge.h
index e56dcbbb0c44224e54b9ba3e15338c2c56790163..a0b3007a70415539b131c2e3bc6d05a81baee0ff 100644
--- a/chrome/browser/android/offline_pages/offline_page_bridge.h
+++ b/chrome/browser/android/offline_pages/offline_page_bridge.h
@@ -26,6 +26,9 @@ namespace android {
*/
class OfflinePageBridge : public OfflinePageModel::Observer {
public:
+ // Returns true if |url| might points to an offline page.
+ static bool MightBeOfflineURL(const GURL& url);
+
OfflinePageBridge(JNIEnv* env,
jobject obj,
content::BrowserContext* browser_context);
@@ -37,6 +40,7 @@ class OfflinePageBridge : public OfflinePageModel::Observer {
void GetAllPages(JNIEnv* env,
jobject obj,
jobject j_result_obj);
+ void GetPagesToCleanUp(JNIEnv* env, jobject obj, jobject j_result_obj);
base::android::ScopedJavaLocalRef<jobject>
GetPageByBookmarkId(JNIEnv* env, jobject obj, jlong bookmark_id);
@@ -52,8 +56,10 @@ class OfflinePageBridge : public OfflinePageModel::Observer {
jobject j_callback_obj,
jlong bookmark_id);
- // Returns true if |url| might points to an offline page.
- static bool MightBeOfflineURL(const GURL& url);
+ void DeletePages(JNIEnv* env,
+ jobject obj,
+ jobject j_callback_obj,
+ jlongArray bookmark_ids_array);
private:
void NotifyIfDoneLoading() const;
« no previous file with comments | « chrome/android/java/strings/android_chrome_strings.grd ('k') | chrome/browser/android/offline_pages/offline_page_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698