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

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

Issue 2209813002: [Offline Pages] Moves Coordinator to using MarkAttemptStarted/MarkAttemptCompleted API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 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: components/offline_pages/background/request_coordinator_event_logger.h
diff --git a/components/offline_pages/background/request_coordinator_event_logger.h b/components/offline_pages/background/request_coordinator_event_logger.h
index 0e0476435898582911c543ec1930a06ba0c04744..4ac05e89274d108644886a1172b830994bdef7ad 100644
--- a/components/offline_pages/background/request_coordinator_event_logger.h
+++ b/components/offline_pages/background/request_coordinator_event_logger.h
@@ -6,7 +6,10 @@
#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_EVENT_LOGGER_H_
#include <stdint.h>
+#include <string>
+#include "components/offline_pages/background/offliner.h"
+#include "components/offline_pages/background/request_queue.h"
#include "components/offline_pages/offline_event_logger.h"
namespace offline_pages {
@@ -16,8 +19,11 @@ class RequestCoordinatorEventLogger : public OfflineEventLogger {
// Records that a background task with SavePageRequest |request_id|
// has been updated.
void RecordSavePageRequestUpdated(const std::string& name_space,
- const std::string& new_status,
+ Offliner::RequestStatus new_status,
int64_t request_id);
+
+ void RecordUpdateRequestFailed(const std::string& name_space,
+ RequestQueue::UpdateRequestResult result);
};
} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698