blob: 904c1130533c3501c4c6117937c0f431fe7d7f46 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_APP_APPLICATION_STORAGE_METRICS_H_
#define IOS_CHROME_APP_APPLICATION_STORAGE_METRICS_H_
#import <Foundation/Foundation.h>
#import "base/files/file_path.h"
// A key to NSUserDefaults storing the last time these metrics were logged.
extern NSString* const kLastApplicationStorageMetricsLogTime;
// Logs metrics about the storage used by the application and then updates the
// `kLastApplicationStorageMetricsLogTime` user default value. `profile_path`
// must point to the main user non-incognito profile directory and
// `off_the_record_state_path` to the incognito state path.
void LogApplicationStorageMetrics(base::FilePath profile_path,
base::FilePath off_the_record_state_path);
#endif // IOS_CHROME_APP_APPLICATION_STORAGE_METRICS_H_