blob: 695d355eb95accab55c4dded15b68560cf644e44 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/offline_pages/core/offline_page_model_event_logger.h"
namespace offline_pages {
void OfflinePageModelEventLogger::RecordPageSaved(const std::string& name_space,
const std::string& url,
int64_t offline_id) {
std::string id_str = std::to_string(offline_id);
RecordActivity(url + " is saved at " + name_space + " with id " + id_str);
}
void OfflinePageModelEventLogger::RecordPageDeleted(int64_t offline_id) {
std::string id_str = std::to_string(offline_id);
RecordActivity("Page with ID " + id_str + " has been deleted");
}
void OfflinePageModelEventLogger::RecordPageExpired(int64_t offline_id) {
std::string id_str = std::to_string(offline_id);
RecordActivity("Page with ID " + id_str + " has been expired");
}
void OfflinePageModelEventLogger::RecordStoreClearError() {
RecordActivity("Offline store clear failed");
}
void OfflinePageModelEventLogger::RecordStoreCleared() {
RecordActivity("Offline store cleared");
}
void OfflinePageModelEventLogger::RecordStoreReloadError() {
RecordActivity("There was an error reloading the offline store");
}
} // namespace offline_pages