1 // Copyright 2015 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.
5 #ifndef CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_USAGE_INFO_H_
6 #define CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_USAGE_INFO_H_
8 #include "base/time/time.h"
9 #include "content/common/content_export.h"
14 // Used to report per-origin storage info for Cache Storage API usage.
15 struct CONTENT_EXPORT CacheStorageUsageInfo
{
16 CacheStorageUsageInfo(const GURL
& origin
,
17 int64 total_size_bytes
,
18 const base::Time
& last_modified
)
20 total_size_bytes(total_size_bytes
),
21 last_modified(last_modified
) {}
23 // The origin this object is describing.
26 // The total size, including resources, in bytes.
27 int64 total_size_bytes
;
29 // Last modification time of the data for this origin.
30 base::Time last_modified
;
33 } // namespace content
35 #endif // CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_USAGE_INFO_H_