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

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

Issue 304543002: Show the unregistered workers in chrome://serviceworker-internals and chrome://inspect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass live_registrations to chrome://inspect. Created 6 years, 7 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 class 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 int64 version_id, 21 int64 version_id,
22 int process_id, 22 int process_id,
23 int thread_id); 23 int thread_id,
24 int devtools_agent_route_id);
24 ~ServiceWorkerVersionInfo(); 25 ~ServiceWorkerVersionInfo();
25 26
26 bool is_null; 27 bool is_null;
27 ServiceWorkerVersion::RunningStatus running_status; 28 ServiceWorkerVersion::RunningStatus running_status;
28 ServiceWorkerVersion::Status status; 29 ServiceWorkerVersion::Status status;
29 int64 version_id; 30 int64 version_id;
30 int process_id; 31 int process_id;
31 int thread_id; 32 int thread_id;
33 int devtools_agent_route_id;
32 }; 34 };
33 35
34 class CONTENT_EXPORT ServiceWorkerRegistrationInfo { 36 class CONTENT_EXPORT ServiceWorkerRegistrationInfo {
35 public: 37 public:
36 ServiceWorkerRegistrationInfo(); 38 ServiceWorkerRegistrationInfo();
37 ServiceWorkerRegistrationInfo( 39 ServiceWorkerRegistrationInfo(
38 const GURL& script_url, 40 const GURL& script_url,
39 const GURL& pattern, 41 const GURL& pattern,
42 int64 registration_id,
40 const ServiceWorkerVersionInfo& active_version, 43 const ServiceWorkerVersionInfo& active_version,
41 const ServiceWorkerVersionInfo& pending_version); 44 const ServiceWorkerVersionInfo& pending_version);
42 ~ServiceWorkerRegistrationInfo(); 45 ~ServiceWorkerRegistrationInfo();
43 46
44 GURL script_url; 47 GURL script_url;
45 GURL pattern; 48 GURL pattern;
49 int64 registration_id;
46 ServiceWorkerVersionInfo active_version; 50 ServiceWorkerVersionInfo active_version;
47 ServiceWorkerVersionInfo pending_version; 51 ServiceWorkerVersionInfo pending_version;
48 }; 52 };
49 53
50 } // namespace content 54 } // namespace content
51 55
52 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ 56 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698