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

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

Issue 2562523003: Set the document URL of ServiceWorkerProviderHost when redirected even if skip_service_worker is set (Closed)
Patch Set: incorporated shimazu's comment 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_provider_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PROVIDER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Returns a handler for a request, the handler may return NULL if 167 // Returns a handler for a request, the handler may return NULL if
168 // the request doesn't require special handling. 168 // the request doesn't require special handling.
169 std::unique_ptr<ServiceWorkerRequestHandler> CreateRequestHandler( 169 std::unique_ptr<ServiceWorkerRequestHandler> CreateRequestHandler(
170 FetchRequestMode request_mode, 170 FetchRequestMode request_mode,
171 FetchCredentialsMode credentials_mode, 171 FetchCredentialsMode credentials_mode,
172 FetchRedirectMode redirect_mode, 172 FetchRedirectMode redirect_mode,
173 ResourceType resource_type, 173 ResourceType resource_type,
174 RequestContextType request_context_type, 174 RequestContextType request_context_type,
175 RequestContextFrameType frame_type, 175 RequestContextFrameType frame_type,
176 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, 176 base::WeakPtr<storage::BlobStorageContext> blob_storage_context,
177 scoped_refptr<ResourceRequestBodyImpl> body); 177 scoped_refptr<ResourceRequestBodyImpl> body,
178 bool skip_service_worker);
178 179
179 // Used to get a ServiceWorkerObjectInfo to send to the renderer. Finds an 180 // Used to get a ServiceWorkerObjectInfo to send to the renderer. Finds an
180 // existing ServiceWorkerHandle, and increments its reference count, or else 181 // existing ServiceWorkerHandle, and increments its reference count, or else
181 // creates a new one (initialized to ref count 1). Returns the 182 // creates a new one (initialized to ref count 1). Returns the
182 // ServiceWorkerInfo from the handle. The renderer is expected to use 183 // ServiceWorkerInfo from the handle. The renderer is expected to use
183 // ServiceWorkerHandleReference::Adopt to balance out the ref count. 184 // ServiceWorkerHandleReference::Adopt to balance out the ref count.
184 ServiceWorkerObjectInfo GetOrCreateServiceWorkerHandle( 185 ServiceWorkerObjectInfo GetOrCreateServiceWorkerHandle(
185 ServiceWorkerVersion* version); 186 ServiceWorkerVersion* version);
186 187
187 // Returns true if |registration| can be associated with this provider. 188 // Returns true if |registration| can be associated with this provider.
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 bool allow_association_; 376 bool allow_association_;
376 377
377 std::vector<base::Closure> queued_events_; 378 std::vector<base::Closure> queued_events_;
378 379
379 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); 380 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost);
380 }; 381 };
381 382
382 } // namespace content 383 } // namespace content
383 384
384 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 385 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_provider_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698