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

Side by Side Diff: content/browser/service_worker/service_worker_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: added tests Created 6 years, 1 month 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "content/browser/service_worker/service_worker_version.h" 10 #include "content/browser/service_worker/service_worker_version.h"
(...skipping 24 matching lines...) Expand all
35 }; 35 };
36 36
37 class CONTENT_EXPORT ServiceWorkerRegistrationInfo { 37 class CONTENT_EXPORT ServiceWorkerRegistrationInfo {
38 public: 38 public:
39 ServiceWorkerRegistrationInfo(); 39 ServiceWorkerRegistrationInfo();
40 ServiceWorkerRegistrationInfo( 40 ServiceWorkerRegistrationInfo(
41 const GURL& pattern, 41 const GURL& pattern,
42 int64 registration_id, 42 int64 registration_id,
43 const ServiceWorkerVersionInfo& active_version, 43 const ServiceWorkerVersionInfo& active_version,
44 const ServiceWorkerVersionInfo& waiting_version, 44 const ServiceWorkerVersionInfo& waiting_version,
45 const ServiceWorkerVersionInfo& installing_version); 45 const ServiceWorkerVersionInfo& installing_version,
46 int64_t active_version_total_size_bytes);
46 ~ServiceWorkerRegistrationInfo(); 47 ~ServiceWorkerRegistrationInfo();
47 48
48 GURL pattern; 49 GURL pattern;
49 int64 registration_id; 50 int64 registration_id;
50 ServiceWorkerVersionInfo controlling_version; 51 ServiceWorkerVersionInfo controlling_version;
51 ServiceWorkerVersionInfo active_version; 52 ServiceWorkerVersionInfo active_version;
52 ServiceWorkerVersionInfo waiting_version; 53 ServiceWorkerVersionInfo waiting_version;
53 ServiceWorkerVersionInfo installing_version; 54 ServiceWorkerVersionInfo installing_version;
55
56 int64_t stored_version_size_bytes;
54 }; 57 };
55 58
56 } // namespace content 59 } // namespace content
57 60
58 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ 61 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698