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

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

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: fix IPC Created 3 years, 4 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 #include "content/browser/service_worker/service_worker_info.h" 5 #include "content/browser/service_worker/service_worker_info.h"
6 6
7 #include "content/browser/service_worker/embedded_worker_status.h" 7 #include "content/browser/service_worker/embedded_worker_status.h"
8 #include "content/common/service_worker/service_worker_types.h" 8 #include "content/common/service_worker/service_worker_types.h"
9 #include "content/public/common/browser_side_navigation_policy.h" 9 #include "content/public/common/browser_side_navigation_policy.h"
10 #include "content/public/common/child_process_host.h" 10 #include "content/public/common/child_process_host.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const GURL& pattern, 79 const GURL& pattern,
80 int64_t registration_id, 80 int64_t registration_id,
81 DeleteFlag delete_flag) 81 DeleteFlag delete_flag)
82 : pattern(pattern), 82 : pattern(pattern),
83 registration_id(registration_id), 83 registration_id(registration_id),
84 delete_flag(delete_flag), 84 delete_flag(delete_flag),
85 stored_version_size_bytes(0) {} 85 stored_version_size_bytes(0) {}
86 86
87 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo( 87 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo(
88 const GURL& pattern, 88 const GURL& pattern,
89 blink::WebServiceWorkerUpdateViaCache update_via_cache,
89 int64_t registration_id, 90 int64_t registration_id,
90 DeleteFlag delete_flag, 91 DeleteFlag delete_flag,
91 const ServiceWorkerVersionInfo& active_version, 92 const ServiceWorkerVersionInfo& active_version,
92 const ServiceWorkerVersionInfo& waiting_version, 93 const ServiceWorkerVersionInfo& waiting_version,
93 const ServiceWorkerVersionInfo& installing_version, 94 const ServiceWorkerVersionInfo& installing_version,
94 int64_t stored_version_size_bytes) 95 int64_t stored_version_size_bytes)
95 : pattern(pattern), 96 : pattern(pattern),
97 update_via_cache(update_via_cache),
96 registration_id(registration_id), 98 registration_id(registration_id),
97 delete_flag(delete_flag), 99 delete_flag(delete_flag),
98 active_version(active_version), 100 active_version(active_version),
99 waiting_version(waiting_version), 101 waiting_version(waiting_version),
100 installing_version(installing_version), 102 installing_version(installing_version),
101 stored_version_size_bytes(stored_version_size_bytes) {} 103 stored_version_size_bytes(stored_version_size_bytes) {}
102 104
103 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo( 105 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo(
104 const ServiceWorkerRegistrationInfo& other) = default; 106 const ServiceWorkerRegistrationInfo& other) = default;
105 107
106 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} 108 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {}
107 109
108 } // namespace content 110 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_info.h ('k') | content/browser/service_worker/service_worker_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698