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

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

Issue 672813002: [ServiceWorker] Added size deltas and total size computation for QuotaM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_USAGE_INFO_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_USAGE_INFO_H_
6 #define CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_USAGE_INFO_H_ 6 #define CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_USAGE_INFO_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // Used to report per-origin storage info for registered Service Workers. 15 // Used to report per-origin storage info for registered Service Workers.
16 class CONTENT_EXPORT ServiceWorkerUsageInfo { 16 class CONTENT_EXPORT ServiceWorkerUsageInfo {
17 public: 17 public:
18 ServiceWorkerUsageInfo(const GURL& origin, const std::vector<GURL>& scopes); 18 ServiceWorkerUsageInfo(const GURL& origin, const std::vector<GURL>& scopes);
19 ServiceWorkerUsageInfo(const GURL& origin); 19 ServiceWorkerUsageInfo(const GURL& origin);
20 ServiceWorkerUsageInfo(); 20 ServiceWorkerUsageInfo();
21 ~ServiceWorkerUsageInfo(); 21 ~ServiceWorkerUsageInfo();
22 22
23 // The origin this object is describing. 23 // The origin this object is describing.
24 GURL origin; 24 GURL origin;
25 25
26 // The set of all Service Worker registrations within this origin; 26 // The set of all Service Worker registrations within this origin;
27 // a registration is a 'scope' - a URL with optional wildcard. 27 // a registration is a 'scope' - a URL with optional wildcard.
28 std::vector<GURL> scopes; 28 std::vector<GURL> scopes;
29 29
30 // TODO(jsbell): Add size on disk (in bytes). 30 // The total size, including resources.
31 int64 total_size_bytes;
32
31 // TODO(jsbell): Add last modified time. 33 // TODO(jsbell): Add last modified time.
32 }; 34 };
33 35
34 } // namespace content 36 } // namespace content
35 37
36 #endif // CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_USAGE_INFO_H_ 38 #endif // CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_USAGE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698