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

Side by Side Diff: content/browser/service_worker/service_worker_info.h

Issue 998173002: Revise ServiceWorker DevTools protocols. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated kinuko's comment Created 5 years, 9 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_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"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 class CONTENT_EXPORT ServiceWorkerVersionInfo { 16 struct CONTENT_EXPORT ServiceWorkerVersionInfo {
17 public: 17 public:
18 ServiceWorkerVersionInfo(); 18 ServiceWorkerVersionInfo();
19 ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status, 19 ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status,
20 ServiceWorkerVersion::Status status, 20 ServiceWorkerVersion::Status status,
21 const GURL& script_url, 21 const GURL& script_url,
22 int64 registration_id, 22 int64 registration_id,
23 int64 version_id, 23 int64 version_id,
24 int process_id, 24 int process_id,
25 int thread_id, 25 int thread_id,
26 int devtools_agent_route_id); 26 int devtools_agent_route_id);
27 ~ServiceWorkerVersionInfo(); 27 ~ServiceWorkerVersionInfo();
28 28
29 ServiceWorkerVersion::RunningStatus running_status; 29 ServiceWorkerVersion::RunningStatus running_status;
30 ServiceWorkerVersion::Status status; 30 ServiceWorkerVersion::Status status;
31 GURL script_url; 31 GURL script_url;
32 int64 registration_id; 32 int64 registration_id;
33 int64 version_id; 33 int64 version_id;
34 int process_id; 34 int process_id;
35 int thread_id; 35 int thread_id;
36 int devtools_agent_route_id; 36 int devtools_agent_route_id;
37 }; 37 };
38 38
39 class CONTENT_EXPORT ServiceWorkerRegistrationInfo { 39 struct CONTENT_EXPORT ServiceWorkerRegistrationInfo {
40 public: 40 public:
41 enum DeleteFlag { IsNotDeleted, IsDeleted };
kinuko 2015/03/13 12:17:24 enum name should be CAPITAL_NAME (or kCamelName, l
horo 2015/03/13 16:03:30 Done.
41 ServiceWorkerRegistrationInfo(); 42 ServiceWorkerRegistrationInfo();
43 ServiceWorkerRegistrationInfo(const GURL& pattern,
44 int64 registration_id,
45 DeleteFlag delete_flag);
42 ServiceWorkerRegistrationInfo( 46 ServiceWorkerRegistrationInfo(
43 const GURL& pattern, 47 const GURL& pattern,
44 int64 registration_id, 48 int64 registration_id,
49 DeleteFlag delete_flag,
45 const ServiceWorkerVersionInfo& active_version, 50 const ServiceWorkerVersionInfo& active_version,
46 const ServiceWorkerVersionInfo& waiting_version, 51 const ServiceWorkerVersionInfo& waiting_version,
47 const ServiceWorkerVersionInfo& installing_version, 52 const ServiceWorkerVersionInfo& installing_version,
48 int64_t active_version_total_size_bytes); 53 int64_t active_version_total_size_bytes);
49 ~ServiceWorkerRegistrationInfo(); 54 ~ServiceWorkerRegistrationInfo();
50 55
51 GURL pattern; 56 GURL pattern;
52 int64 registration_id; 57 int64 registration_id;
58 DeleteFlag delete_flag;
53 ServiceWorkerVersionInfo active_version; 59 ServiceWorkerVersionInfo active_version;
54 ServiceWorkerVersionInfo waiting_version; 60 ServiceWorkerVersionInfo waiting_version;
55 ServiceWorkerVersionInfo installing_version; 61 ServiceWorkerVersionInfo installing_version;
56 62
57 int64_t stored_version_size_bytes; 63 int64_t stored_version_size_bytes;
58 }; 64 };
59 65
60 } // namespace content 66 } // namespace content
61 67
62 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ 68 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698