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

Unified Diff: chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h

Issue 2342603004: [Offline pages] Clean up unnecessary DeleteAll calls in offline internals (Closed)
Patch Set: update id in js and remove references to deleted methods 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h
diff --git a/chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h b/chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h
index a1c99b162f8831b1f420c200b9c39f5e148542db..40d853b0180c2d9b55725ea8dd7533e88314ef9c 100644
--- a/chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h
+++ b/chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h
@@ -24,15 +24,9 @@ class OfflineInternalsUIMessageHandler : public content::WebUIMessageHandler {
void RegisterMessages() override;
private:
- // Deletes all the pages in the store.
- void HandleDeleteAllPages(const base::ListValue* args);
-
// Delete selected list of page ids from the store.
void HandleDeleteSelectedPages(const base::ListValue* args);
- // Deletes all the requests in the request queue.
- void HandleDeleteAllRequests(const base::ListValue* args);
-
// Delete selected list of requests from the request queue.
void HandleDeleteSelectedRequests(const base::ListValue* args);
@@ -60,11 +54,6 @@ class OfflineInternalsUIMessageHandler : public content::WebUIMessageHandler {
// Load whether device is currently offline.
void HandleGetNetworkStatus(const base::ListValue* args);
- // Callback used by DeleteAllRequests to get the request_ids to delete.
- void HandleGetAllRequestsForDeleteCallback(
- std::string callback_id,
- std::vector<std::unique_ptr<offline_pages::SavePageRequest>> requests);
-
// Callback for async GetAllPages calls.
void HandleStoredPagesCallback(
std::string callback_id,

Powered by Google App Engine
This is Rietveld 408576698