| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_EVENT_LOGGER_H_ | |
| 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_EVENT_LOGGER_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 #include <string> | |
| 10 | |
| 11 #include "components/offline_pages/background/offliner.h" | |
| 12 #include "components/offline_pages/background/request_notifier.h" | |
| 13 #include "components/offline_pages/background/request_queue_results.h" | |
| 14 #include "components/offline_pages/offline_event_logger.h" | |
| 15 | |
| 16 namespace offline_pages { | |
| 17 | |
| 18 class RequestCoordinatorEventLogger : public OfflineEventLogger { | |
| 19 public: | |
| 20 // Records the result of a background task attempt for SavePageRequest | |
| 21 // |request_id|. | |
| 22 void RecordOfflinerResult(const std::string& name_space, | |
| 23 Offliner::RequestStatus new_status, | |
| 24 int64_t request_id); | |
| 25 | |
| 26 // Records the reason for dropped SavePageRequest |request_id|. | |
| 27 void RecordDroppedSavePageRequest( | |
| 28 const std::string& name_space, | |
| 29 RequestNotifier::BackgroundSavePageResult result, | |
| 30 int64_t request_id); | |
| 31 | |
| 32 void RecordUpdateRequestFailed(const std::string& name_space, | |
| 33 UpdateRequestResult result); | |
| 34 }; | |
| 35 | |
| 36 } // namespace offline_pages | |
| 37 | |
| 38 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_EVENT_LOGGER_
H_ | |
| OLD | NEW |