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

Side by Side Diff: components/offline_pages/core/background/request_coordinator_event_logger.h

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 years 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 COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_EVENT_LOGGER_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_REQUEST_COORDINATOR_EVENT_LOGGE R_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_EVENT_LOGGER_H_ 6 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_REQUEST_COORDINATOR_EVENT_LOGGE R_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 10
11 #include "components/offline_pages/background/offliner.h" 11 #include "components/offline_pages/core/background/offliner.h"
12 #include "components/offline_pages/background/request_notifier.h" 12 #include "components/offline_pages/core/background/request_notifier.h"
13 #include "components/offline_pages/background/request_queue_results.h" 13 #include "components/offline_pages/core/background/request_queue_results.h"
14 #include "components/offline_pages/offline_event_logger.h" 14 #include "components/offline_pages/core/offline_event_logger.h"
15 15
16 namespace offline_pages { 16 namespace offline_pages {
17 17
18 class RequestCoordinatorEventLogger : public OfflineEventLogger { 18 class RequestCoordinatorEventLogger : public OfflineEventLogger {
19 public: 19 public:
20 // Records the result of a background task attempt for SavePageRequest 20 // Records the result of a background task attempt for SavePageRequest
21 // |request_id|. 21 // |request_id|.
22 void RecordOfflinerResult(const std::string& name_space, 22 void RecordOfflinerResult(const std::string& name_space,
23 Offliner::RequestStatus new_status, 23 Offliner::RequestStatus new_status,
24 int64_t request_id); 24 int64_t request_id);
25 25
26 // Records the reason for dropped SavePageRequest |request_id|. 26 // Records the reason for dropped SavePageRequest |request_id|.
27 void RecordDroppedSavePageRequest( 27 void RecordDroppedSavePageRequest(
28 const std::string& name_space, 28 const std::string& name_space,
29 RequestNotifier::BackgroundSavePageResult result, 29 RequestNotifier::BackgroundSavePageResult result,
30 int64_t request_id); 30 int64_t request_id);
31 31
32 void RecordUpdateRequestFailed(const std::string& name_space, 32 void RecordUpdateRequestFailed(const std::string& name_space,
33 UpdateRequestResult result); 33 UpdateRequestResult result);
34 }; 34 };
35 35
36 } // namespace offline_pages 36 } // namespace offline_pages
37 37
38 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_EVENT_LOGGER_ H_ 38 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_REQUEST_COORDINATOR_EVENT_LO GGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698