Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: content/public/browser/cache_storage_usage_info.h

Issue 1297093002: Cache Storage API: Hook up to chrome://settings/cookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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/files/file_path.h"
jkarlin 2015/08/18 13:22:36 not needed
jsbell 2015/08/18 18:42:43 Done.
9 #include "base/time/time.h"
10 #include "content/common/content_export.h"
11 #include "url/gurl.h"
12
13 namespace content {
14
15 // Used to report per-origin storage info for Cache Storage API usage.
16 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.
17 public:
18 CacheStorageUsageInfo(const GURL& origin,
19 int64 total_size_bytes,
20 const base::Time& last_modified);
21 CacheStorageUsageInfo(const CacheStorageUsageInfo& other);
22 ~CacheStorageUsageInfo();
23 CacheStorageUsageInfo& operator=(const CacheStorageUsageInfo& other);
24
25 // The origin this object is describing.
26 GURL origin;
27
28 // The total size, including resources, in bytes.
29 int64 total_size_bytes;
30
31 // Last modification time of the data for this origin.
32 // TODO(jsbell): Populate
33 base::Time last_modified;
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_USAGE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698