OLD | NEW |
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 #include "content/browser/service_worker/service_worker_provider_host.h" | 5 #include "content/browser/service_worker/service_worker_provider_host.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/feature_list.h" | 9 #include "base/feature_list.h" |
10 #include "base/guid.h" | 10 #include "base/guid.h" |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 ServiceWorkerProviderHost::CreateRequestHandler( | 409 ServiceWorkerProviderHost::CreateRequestHandler( |
410 FetchRequestMode request_mode, | 410 FetchRequestMode request_mode, |
411 FetchCredentialsMode credentials_mode, | 411 FetchCredentialsMode credentials_mode, |
412 FetchRedirectMode redirect_mode, | 412 FetchRedirectMode redirect_mode, |
413 ResourceType resource_type, | 413 ResourceType resource_type, |
414 RequestContextType request_context_type, | 414 RequestContextType request_context_type, |
415 RequestContextFrameType frame_type, | 415 RequestContextFrameType frame_type, |
416 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, | 416 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, |
417 scoped_refptr<ResourceRequestBodyImpl> body, | 417 scoped_refptr<ResourceRequestBodyImpl> body, |
418 bool skip_service_worker) { | 418 bool skip_service_worker) { |
| 419 #if 0 |
| 420 NetworkFallbackCallback network_fallback_callback) { |
| 421 #endif |
419 // |skip_service_worker| is meant to apply to requests that could be handled | 422 // |skip_service_worker| is meant to apply to requests that could be handled |
420 // by a service worker, as opposed to requests for the service worker script | 423 // by a service worker, as opposed to requests for the service worker script |
421 // itself. So ignore it here for the service worker script and its imported | 424 // itself. So ignore it here for the service worker script and its imported |
422 // scripts. | 425 // scripts. |
423 // TODO(falken): Really it should be treated as an error to set | 426 // TODO(falken): Really it should be treated as an error to set |
424 // |skip_service_worker| for requests to start the service worker, but it's | 427 // |skip_service_worker| for requests to start the service worker, but it's |
425 // difficult to fix that renderer-side, since we don't know whether a request | 428 // difficult to fix that renderer-side, since we don't know whether a request |
426 // is for a service worker without access to IsHostToRunningServiceWorker() as | 429 // is for a service worker without access to IsHostToRunningServiceWorker() as |
427 // that state is stored browser-side. | 430 // that state is stored browser-side. |
428 if (IsHostToRunningServiceWorker() && | 431 if (IsHostToRunningServiceWorker() && |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 render_thread_id_, provider_id(), | 789 render_thread_id_, provider_id(), |
787 GetOrCreateServiceWorkerHandle( | 790 GetOrCreateServiceWorkerHandle( |
788 associated_registration_->active_version()), | 791 associated_registration_->active_version()), |
789 false /* shouldNotifyControllerChange */, | 792 false /* shouldNotifyControllerChange */, |
790 associated_registration_->active_version()->used_features())); | 793 associated_registration_->active_version()->used_features())); |
791 } | 794 } |
792 } | 795 } |
793 } | 796 } |
794 | 797 |
795 } // namespace content | 798 } // namespace content |
OLD | NEW |