Chromium Code Reviews| 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| and |id|. | |
| 15 void RecordPageSaved(const std::string& name_space, | |
| 16 const std::string& url, | |
| 17 const std::string& id); | |
|
fgorski
2016/06/23 16:34:07
please document which ID it is.
If it is part of t
chili
2016/06/24 02:45:52
Done.
| |
| 18 | |
| 19 // Records that a page with |id| has been deleted. | |
|
fgorski
2016/06/23 16:34:07
same: document ID please.
chili
2016/06/24 02:45:52
Done.
| |
| 20 void RecordPageDeleted(const std::string& id); | |
| 21 | |
| 22 // Records that the offline store has been cleared. | |
| 23 void RecordStoreCleared(); | |
| 24 | |
| 25 // Records that there was an error when clearing the offline store. | |
| 26 void RecordStoreClearError(); | |
| 27 | |
| 28 // Records that there was an error when reloading the offline store. | |
| 29 void RecordStoreReloadError(); | |
| 30 }; | |
| 31 | |
| 32 } // namespace offline_pages | |
| 33 | |
| 34 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_EVENT_LOGGER_H_ | |
| OLD | NEW |