OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_USAGE_INFO_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_USAGE_INFO_H_ |
| 7 |
| 8 #include "base/time/time.h" |
| 9 #include "content/common/content_export.h" |
| 10 #include "url/gurl.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 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) {} |
| 22 |
| 23 // The origin this object is describing. |
| 24 GURL origin; |
| 25 |
| 26 // The total size, including resources, in bytes. |
| 27 int64 total_size_bytes; |
| 28 |
| 29 // Last modification time of the data for this origin. |
| 30 base::Time last_modified; |
| 31 }; |
| 32 |
| 33 } // namespace content |
| 34 |
| 35 #endif // CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_USAGE_INFO_H_ |
OLD | NEW |