• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2024 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "components/metrics/structured/storage_manager.h"
6 
7 namespace metrics::structured {
8 
9 StorageManager::StorageManager() = default;
10 
11 StorageManager::~StorageManager() = default;
12 
NotifyOnFlushed(const FlushedKey & key)13 void StorageManager::NotifyOnFlushed(const FlushedKey& key) {
14   if (delegate_) {
15     delegate_->OnFlushed(key);
16   }
17 }
18 
NotifyOnDeleted(const FlushedKey & key,DeleteReason reason)19 void StorageManager::NotifyOnDeleted(const FlushedKey& key,
20                                      DeleteReason reason) {
21   if (delegate_) {
22     delegate_->OnDeleted(key, reason);
23   }
24 }
25 }  // namespace metrics::structured
26