Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / content / public / browser / cache_storage_usage_info.h
blobde457e08b9d31accdd3932f62648ba5262870aa8
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"
10 #include "url/gurl.h"
12 namespace content {
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)
19 : origin(origin),
20 total_size_bytes(total_size_bytes),
21 last_modified(last_modified) {}
23 // The origin this object is describing.
24 GURL origin;
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_