OLD | NEW |
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> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 int thread_id; | 49 int thread_id; |
50 int devtools_agent_route_id; | 50 int devtools_agent_route_id; |
51 base::Time script_response_time; | 51 base::Time script_response_time; |
52 base::Time script_last_modified; | 52 base::Time script_last_modified; |
53 std::map<std::string, ClientInfo> clients; | 53 std::map<std::string, ClientInfo> clients; |
54 }; | 54 }; |
55 | 55 |
56 struct CONTENT_EXPORT ServiceWorkerRegistrationInfo { | 56 struct CONTENT_EXPORT ServiceWorkerRegistrationInfo { |
57 public: | 57 public: |
58 enum DeleteFlag { IS_NOT_DELETED, IS_DELETED }; | 58 enum DeleteFlag { IS_NOT_DELETED, IS_DELETED }; |
59 enum ForceUpdateOnPageLoad { IS_NOT_FORCED, IS_FORCED }; | |
60 ServiceWorkerRegistrationInfo(); | 59 ServiceWorkerRegistrationInfo(); |
61 ServiceWorkerRegistrationInfo(const GURL& pattern, | 60 ServiceWorkerRegistrationInfo(const GURL& pattern, |
62 int64_t registration_id, | 61 int64_t registration_id, |
63 DeleteFlag delete_flag); | 62 DeleteFlag delete_flag); |
64 ServiceWorkerRegistrationInfo( | 63 ServiceWorkerRegistrationInfo( |
65 const GURL& pattern, | 64 const GURL& pattern, |
66 int64_t registration_id, | 65 int64_t registration_id, |
67 DeleteFlag delete_flag, | 66 DeleteFlag delete_flag, |
68 ForceUpdateOnPageLoad force_update_on_page_load, | |
69 const ServiceWorkerVersionInfo& active_version, | 67 const ServiceWorkerVersionInfo& active_version, |
70 const ServiceWorkerVersionInfo& waiting_version, | 68 const ServiceWorkerVersionInfo& waiting_version, |
71 const ServiceWorkerVersionInfo& installing_version, | 69 const ServiceWorkerVersionInfo& installing_version, |
72 int64_t active_version_total_size_bytes); | 70 int64_t active_version_total_size_bytes); |
73 ServiceWorkerRegistrationInfo(const ServiceWorkerRegistrationInfo& other); | 71 ServiceWorkerRegistrationInfo(const ServiceWorkerRegistrationInfo& other); |
74 ~ServiceWorkerRegistrationInfo(); | 72 ~ServiceWorkerRegistrationInfo(); |
75 | 73 |
76 GURL pattern; | 74 GURL pattern; |
77 int64_t registration_id; | 75 int64_t registration_id; |
78 DeleteFlag delete_flag; | 76 DeleteFlag delete_flag; |
79 ForceUpdateOnPageLoad force_update_on_page_load; | |
80 ServiceWorkerVersionInfo active_version; | 77 ServiceWorkerVersionInfo active_version; |
81 ServiceWorkerVersionInfo waiting_version; | 78 ServiceWorkerVersionInfo waiting_version; |
82 ServiceWorkerVersionInfo installing_version; | 79 ServiceWorkerVersionInfo installing_version; |
83 | 80 |
84 int64_t stored_version_size_bytes; | 81 int64_t stored_version_size_bytes; |
85 }; | 82 }; |
86 | 83 |
87 } // namespace content | 84 } // namespace content |
88 | 85 |
89 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ | 86 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
OLD | NEW |