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