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

Side by Side Diff: chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h

Issue 2820263002: [Offline Prefetch] Create a new JobScheduler task to wake up for net activity. (Closed)
Patch Set: tommycli@ comments. Created 3 years, 7 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_UI_WEBUI_OFFLINE_OFFLINE_INTERNALS_UI_MESSAGE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OFFLINE_OFFLINE_INTERNALS_UI_MESSAGE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OFFLINE_OFFLINE_INTERNALS_UI_MESSAGE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OFFLINE_OFFLINE_INTERNALS_UI_MESSAGE_HANDLER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "components/offline_pages/core/background/request_coordinator.h" 10 #include "components/offline_pages/core/background/request_coordinator.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Load whether logs are being recorded. 53 // Load whether logs are being recorded.
54 void HandleGetLoggingState(const base::ListValue* args); 54 void HandleGetLoggingState(const base::ListValue* args);
55 55
56 // Adds a url to the background loader queue. 56 // Adds a url to the background loader queue.
57 void HandleAddToRequestQueue(const base::ListValue* args); 57 void HandleAddToRequestQueue(const base::ListValue* args);
58 58
59 // Load whether device is currently offline. 59 // Load whether device is currently offline.
60 void HandleGetNetworkStatus(const base::ListValue* args); 60 void HandleGetNetworkStatus(const base::ListValue* args);
61 61
62 // Schedules an NWake signal.
63 void HandleScheduleNwake(const base::ListValue* args);
64
65 // Cancels an NWake signal.
66 void HandleCancelNwake(const base::ListValue* args);
67
62 // Callback for async GetAllPages calls. 68 // Callback for async GetAllPages calls.
63 void HandleStoredPagesCallback( 69 void HandleStoredPagesCallback(
64 std::string callback_id, 70 std::string callback_id,
65 const offline_pages::MultipleOfflinePageItemResult& pages); 71 const offline_pages::MultipleOfflinePageItemResult& pages);
66 72
67 // Callback for async GetRequests calls. 73 // Callback for async GetRequests calls.
68 void HandleRequestQueueCallback( 74 void HandleRequestQueueCallback(
69 std::string callback_id, 75 std::string callback_id,
70 offline_pages::GetRequestsResult result, 76 offline_pages::GetRequestsResult result,
71 std::vector<std::unique_ptr<offline_pages::SavePageRequest>> requests); 77 std::vector<std::unique_ptr<offline_pages::SavePageRequest>> requests);
(...skipping 26 matching lines...) Expand all
98 104
99 // Factory for creating references in callbacks. 105 // Factory for creating references in callbacks.
100 base::WeakPtrFactory<OfflineInternalsUIMessageHandler> weak_ptr_factory_; 106 base::WeakPtrFactory<OfflineInternalsUIMessageHandler> weak_ptr_factory_;
101 107
102 DISALLOW_COPY_AND_ASSIGN(OfflineInternalsUIMessageHandler); 108 DISALLOW_COPY_AND_ASSIGN(OfflineInternalsUIMessageHandler);
103 }; 109 };
104 110
105 } // namespace offline_internals 111 } // namespace offline_internals
106 112
107 #endif // CHROME_BROWSER_UI_WEBUI_OFFLINE_OFFLINE_INTERNALS_UI_MESSAGE_HANDLER_H _ 113 #endif // CHROME_BROWSER_UI_WEBUI_OFFLINE_OFFLINE_INTERNALS_UI_MESSAGE_HANDLER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698