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

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

Issue 1037933002: [DevTools] Send ServiceWorkerVersion.ScriptLastModified and ScriptResponseTime to DevTools window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test failure Created 5 years, 8 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 "base/time/time.h"
10 #include "content/browser/service_worker/service_worker_version.h" 11 #include "content/browser/service_worker/service_worker_version.h"
11 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
12 #include "url/gurl.h" 13 #include "url/gurl.h"
13 14
14 namespace content { 15 namespace content {
15 16
16 struct CONTENT_EXPORT ServiceWorkerVersionInfo { 17 struct CONTENT_EXPORT ServiceWorkerVersionInfo {
17 public: 18 public:
18 ServiceWorkerVersionInfo(); 19 ServiceWorkerVersionInfo();
19 ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status, 20 ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status,
20 ServiceWorkerVersion::Status status, 21 ServiceWorkerVersion::Status status,
21 const GURL& script_url, 22 const GURL& script_url,
22 int64 registration_id, 23 int64 registration_id,
23 int64 version_id, 24 int64 version_id,
24 int process_id, 25 int process_id,
25 int thread_id, 26 int thread_id,
26 int devtools_agent_route_id); 27 int devtools_agent_route_id);
27 ~ServiceWorkerVersionInfo(); 28 ~ServiceWorkerVersionInfo();
28 29
29 ServiceWorkerVersion::RunningStatus running_status; 30 ServiceWorkerVersion::RunningStatus running_status;
30 ServiceWorkerVersion::Status status; 31 ServiceWorkerVersion::Status status;
31 GURL script_url; 32 GURL script_url;
32 int64 registration_id; 33 int64 registration_id;
33 int64 version_id; 34 int64 version_id;
34 int process_id; 35 int process_id;
35 int thread_id; 36 int thread_id;
36 int devtools_agent_route_id; 37 int devtools_agent_route_id;
38 base::Time script_response_time;
39 base::Time script_last_modified;
37 }; 40 };
38 41
39 struct CONTENT_EXPORT ServiceWorkerRegistrationInfo { 42 struct CONTENT_EXPORT ServiceWorkerRegistrationInfo {
40 public: 43 public:
41 enum DeleteFlag { IS_NOT_DELETED, IS_DELETED }; 44 enum DeleteFlag { IS_NOT_DELETED, IS_DELETED };
42 ServiceWorkerRegistrationInfo(); 45 ServiceWorkerRegistrationInfo();
43 ServiceWorkerRegistrationInfo(const GURL& pattern, 46 ServiceWorkerRegistrationInfo(const GURL& pattern,
44 int64 registration_id, 47 int64 registration_id,
45 DeleteFlag delete_flag); 48 DeleteFlag delete_flag);
46 ServiceWorkerRegistrationInfo( 49 ServiceWorkerRegistrationInfo(
(...skipping 12 matching lines...) Expand all
59 ServiceWorkerVersionInfo active_version; 62 ServiceWorkerVersionInfo active_version;
60 ServiceWorkerVersionInfo waiting_version; 63 ServiceWorkerVersionInfo waiting_version;
61 ServiceWorkerVersionInfo installing_version; 64 ServiceWorkerVersionInfo installing_version;
62 65
63 int64_t stored_version_size_bytes; 66 int64_t stored_version_size_bytes;
64 }; 67 };
65 68
66 } // namespace content 69 } // namespace content
67 70
68 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ 71 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698