Chromium Code Reviews| 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..1005e1bc968d6e7d1e168cb61b8e4e795fda31db |
| --- /dev/null |
| +++ b/content/public/browser/cache_storage_usage_info.h |
| @@ -0,0 +1,38 @@ |
| +// 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/files/file_path.h" |
|
jkarlin
2015/08/18 13:22:36
not needed
jsbell
2015/08/18 18:42:43
Done.
|
| +#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. |
| +class CONTENT_EXPORT CacheStorageUsageInfo { |
|
jkarlin
2015/08/18 13:22:36
Looks like you mean for this to be a struct not a
jsbell
2015/08/18 18:42:43
Done.
|
| + public: |
| + 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. |
| + // TODO(jsbell): Populate |
| + base::Time last_modified; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_USAGE_INFO_H_ |