Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / content / public / browser / service_worker_usage_info.h
blob06fec611b40849de340871f5ef2b2c107904c806
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_USAGE_INFO_H_
6 #define CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_USAGE_INFO_H_
8 #include <vector>
10 #include "content/common/content_export.h"
11 #include "url/gurl.h"
13 namespace content {
15 // Used to report per-origin storage info for registered Service Workers.
16 struct CONTENT_EXPORT ServiceWorkerUsageInfo {
17 ServiceWorkerUsageInfo(const GURL& origin, const std::vector<GURL>& scopes);
18 ServiceWorkerUsageInfo(const GURL& origin);
19 ServiceWorkerUsageInfo();
20 ~ServiceWorkerUsageInfo();
22 // The origin this object is describing.
23 GURL origin;
25 // The set of all Service Worker registrations within this origin;
26 // a registration is a 'scope' - a URL with optional wildcard.
27 std::vector<GURL> scopes;
29 // The total size, including resources.
30 int64_t total_size_bytes = 0;
32 // TODO(jsbell): Add last modified time.
35 } // namespace content
37 #endif // CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_USAGE_INFO_H_