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

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

Issue 2521793004: service worker: Persist NavigationPreloadState (Closed)
Patch Set: expect_ name Created 4 years 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "content/browser/service_worker/service_worker_version.h" 13 #include "content/browser/service_worker/service_worker_version.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/common/service_worker/service_worker_types.h"
15 #include "url/gurl.h" 16 #include "url/gurl.h"
16 17
17 namespace content { 18 namespace content {
18 19
19 enum class EmbeddedWorkerStatus; 20 enum class EmbeddedWorkerStatus;
20 21
21 struct CONTENT_EXPORT ServiceWorkerVersionInfo { 22 struct CONTENT_EXPORT ServiceWorkerVersionInfo {
22 public: 23 public:
23 struct CONTENT_EXPORT ClientInfo { 24 struct CONTENT_EXPORT ClientInfo {
24 public: 25 public:
(...skipping 15 matching lines...) Expand all
40 int64_t version_id, 41 int64_t version_id,
41 int process_id, 42 int process_id,
42 int thread_id, 43 int thread_id,
43 int devtools_agent_route_id); 44 int devtools_agent_route_id);
44 ServiceWorkerVersionInfo(const ServiceWorkerVersionInfo& other); 45 ServiceWorkerVersionInfo(const ServiceWorkerVersionInfo& other);
45 ~ServiceWorkerVersionInfo(); 46 ~ServiceWorkerVersionInfo();
46 47
47 EmbeddedWorkerStatus running_status; 48 EmbeddedWorkerStatus running_status;
48 ServiceWorkerVersion::Status status; 49 ServiceWorkerVersion::Status status;
49 ServiceWorkerVersion::FetchHandlerExistence fetch_handler_existence; 50 ServiceWorkerVersion::FetchHandlerExistence fetch_handler_existence;
51 NavigationPreloadState navigation_preload_state;
50 GURL script_url; 52 GURL script_url;
51 int64_t registration_id; 53 int64_t registration_id;
52 int64_t version_id; 54 int64_t version_id;
53 int process_id; 55 int process_id;
54 int thread_id; 56 int thread_id;
55 int devtools_agent_route_id; 57 int devtools_agent_route_id;
56 base::Time script_response_time; 58 base::Time script_response_time;
57 base::Time script_last_modified; 59 base::Time script_last_modified;
58 std::map<std::string, ClientInfo> clients; 60 std::map<std::string, ClientInfo> clients;
59 }; 61 };
(...skipping 22 matching lines...) Expand all
82 ServiceWorkerVersionInfo active_version; 84 ServiceWorkerVersionInfo active_version;
83 ServiceWorkerVersionInfo waiting_version; 85 ServiceWorkerVersionInfo waiting_version;
84 ServiceWorkerVersionInfo installing_version; 86 ServiceWorkerVersionInfo installing_version;
85 87
86 int64_t stored_version_size_bytes; 88 int64_t stored_version_size_bytes;
87 }; 89 };
88 90
89 } // namespace content 91 } // namespace content
90 92
91 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ 93 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698