Index: content/public/browser/cache_storage_usage_info.h |
diff --git a/content/public/browser/cache_storage_usage_info.h b/content/public/browser/cache_storage_usage_info.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..87593c158c82fa75a758a1587926acde0ff8a38e |
--- /dev/null |
+++ b/content/public/browser/cache_storage_usage_info.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_USAGE_INFO_H_ |
+#define CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_USAGE_INFO_H_ |
+ |
+#include "base/time/time.h" |
+#include "content/common/content_export.h" |
+#include "url/gurl.h" |
+ |
+namespace content { |
+ |
+// Used to report per-origin storage info for Cache Storage API usage. |
+struct CONTENT_EXPORT CacheStorageUsageInfo { |
+ CacheStorageUsageInfo(const GURL& origin, |
+ int64 total_size_bytes, |
+ const base::Time& last_modified); |
+ CacheStorageUsageInfo(const CacheStorageUsageInfo& other); |
+ ~CacheStorageUsageInfo(); |
+ CacheStorageUsageInfo& operator=(const CacheStorageUsageInfo& other); |
+ |
+ // The origin this object is describing. |
+ GURL origin; |
+ |
+ // The total size, including resources, in bytes. |
+ int64 total_size_bytes; |
+ |
+ // Last modification time of the data for this origin. |
+ base::Time last_modified; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_USAGE_INFO_H_ |