OLD | NEW |
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_OFFLINE_PAGE_MODEL_EVENT_LOGGER_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_EVENT_LOGGER_H_ |
6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_EVENT_LOGGER_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_EVENT_LOGGER_H_ |
7 | 7 |
8 #include "components/offline_pages/offline_event_logger.h" | 8 #include "components/offline_pages/core/offline_event_logger.h" |
9 | 9 |
10 namespace offline_pages { | 10 namespace offline_pages { |
11 | 11 |
12 class OfflinePageModelEventLogger : public OfflineEventLogger { | 12 class OfflinePageModelEventLogger : public OfflineEventLogger { |
13 public: | 13 public: |
14 // Records that a page has been saved for |name_space| with |url| | 14 // Records that a page has been saved for |name_space| with |url| |
15 // and |offline_id|. | 15 // and |offline_id|. |
16 void RecordPageSaved(const std::string& name_space, | 16 void RecordPageSaved(const std::string& name_space, |
17 const std::string& url, | 17 const std::string& url, |
18 const std::string& offline_id); | 18 const std::string& offline_id); |
19 | 19 |
20 // Records that a page with |offline_id| has been deleted. | 20 // Records that a page with |offline_id| has been deleted. |
21 void RecordPageDeleted(const std::string& offline_id); | 21 void RecordPageDeleted(const std::string& offline_id); |
22 | 22 |
23 // Records that a page with |offline_id| has been expired. | 23 // Records that a page with |offline_id| has been expired. |
24 void RecordPageExpired(const std::string& offline_id); | 24 void RecordPageExpired(const std::string& offline_id); |
25 | 25 |
26 // Records that the offline store has been cleared. | 26 // Records that the offline store has been cleared. |
27 void RecordStoreCleared(); | 27 void RecordStoreCleared(); |
28 | 28 |
29 // Records that there was an error when clearing the offline store. | 29 // Records that there was an error when clearing the offline store. |
30 void RecordStoreClearError(); | 30 void RecordStoreClearError(); |
31 | 31 |
32 // Records that there was an error when reloading the offline store. | 32 // Records that there was an error when reloading the offline store. |
33 void RecordStoreReloadError(); | 33 void RecordStoreReloadError(); |
34 }; | 34 }; |
35 | 35 |
36 } // namespace offline_pages | 36 } // namespace offline_pages |
37 | 37 |
38 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_EVENT_LOGGER_H_ | 38 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_EVENT_LOGGER_H_ |
OLD | NEW |