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

Unified Diff: components/offline_pages/background/request_coordinator.h

Issue 2089413002: [Offline Pages] Create a event/activity logger (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: components/offline_pages/background/request_coordinator.h
diff --git a/components/offline_pages/background/request_coordinator.h b/components/offline_pages/background/request_coordinator.h
index ffbb8570499257b13d5d6f8b66ab650d85d5e887..cd8b7061d54e17eefd4327c587d4431bddc4c0c7 100644
--- a/components/offline_pages/background/request_coordinator.h
+++ b/components/offline_pages/background/request_coordinator.h
@@ -13,6 +13,7 @@
#include "components/keyed_service/core/keyed_service.h"
#include "components/offline_pages/background/device_conditions.h"
#include "components/offline_pages/background/offliner.h"
+#include "components/offline_pages/background/request_coordinator_event_logger.h"
#include "components/offline_pages/background/request_queue.h"
#include "url/gurl.h"
@@ -73,6 +74,10 @@ class RequestCoordinator : public KeyedService {
return last_offlining_status_;
}
+ void SetIsLogging(bool should_log);
fgorski 2016/06/23 16:34:06 I started review in the middle, so you might see a
chili 2016/06/24 02:45:50 done
+
+ void GetLogs(std::vector<std::string> logs);
+
private:
void AddRequestResultCallback(RequestQueue::AddRequestResult result,
const SavePageRequest& request);
@@ -110,6 +115,8 @@ class RequestCoordinator : public KeyedService {
std::unique_ptr<RequestPicker> picker_;
// Calling this returns to the scheduler across the JNI bridge.
base::Callback<void(bool)> scheduler_callback_;
+ // Logger to record events.
+ RequestCoordinatorEventLogger event_logger_;
// Allows us to pass a weak pointer to callbacks.
base::WeakPtrFactory<RequestCoordinator> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698