| 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 #include "components/offline_pages/offline_page_model_event_logger.h" | 5 #include "components/offline_pages/core/offline_page_model_event_logger.h" |
| 6 | 6 |
| 7 namespace offline_pages { | 7 namespace offline_pages { |
| 8 | 8 |
| 9 void OfflinePageModelEventLogger::RecordPageSaved(const std::string& name_space, | 9 void OfflinePageModelEventLogger::RecordPageSaved(const std::string& name_space, |
| 10 const std::string& url, | 10 const std::string& url, |
| 11 const std::string& id) { | 11 const std::string& id) { |
| 12 RecordActivity(url + " is saved at " + name_space + " with id " + id); | 12 RecordActivity(url + " is saved at " + name_space + " with id " + id); |
| 13 } | 13 } |
| 14 | 14 |
| 15 void OfflinePageModelEventLogger::RecordPageDeleted(const std::string& id) { | 15 void OfflinePageModelEventLogger::RecordPageDeleted(const std::string& id) { |
| 16 RecordActivity("Page with ID " + id + " has been deleted"); | 16 RecordActivity("Page with ID " + id + " has been deleted"); |
| 17 } | 17 } |
| 18 | 18 |
| 19 void OfflinePageModelEventLogger::RecordPageExpired(const std::string& id) { | 19 void OfflinePageModelEventLogger::RecordPageExpired(const std::string& id) { |
| 20 RecordActivity("Page with ID " + id + " has been expired"); | 20 RecordActivity("Page with ID " + id + " has been expired"); |
| 21 } | 21 } |
| 22 | 22 |
| 23 void OfflinePageModelEventLogger::RecordStoreClearError() { | 23 void OfflinePageModelEventLogger::RecordStoreClearError() { |
| 24 RecordActivity("Offline store clear failed"); | 24 RecordActivity("Offline store clear failed"); |
| 25 } | 25 } |
| 26 | 26 |
| 27 void OfflinePageModelEventLogger::RecordStoreCleared() { | 27 void OfflinePageModelEventLogger::RecordStoreCleared() { |
| 28 RecordActivity("Offline store cleared"); | 28 RecordActivity("Offline store cleared"); |
| 29 } | 29 } |
| 30 | 30 |
| 31 void OfflinePageModelEventLogger::RecordStoreReloadError() { | 31 void OfflinePageModelEventLogger::RecordStoreReloadError() { |
| 32 RecordActivity("There was an error reloading the offline store"); | 32 RecordActivity("There was an error reloading the offline store"); |
| 33 } | 33 } |
| 34 } // namespace offline_pages | 34 } // namespace offline_pages |
| OLD | NEW |