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

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

Issue 339973003: Remove --enable-service-worker flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 | Annotate | Revision Log
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_request_handler.h" 5 #include "content/browser/service_worker/service_worker_request_handler.h"
6 6
7 #include "content/browser/service_worker/service_worker_context_core.h" 7 #include "content/browser/service_worker/service_worker_context_core.h"
8 #include "content/browser/service_worker/service_worker_context_wrapper.h" 8 #include "content/browser/service_worker/service_worker_context_wrapper.h"
9 #include "content/browser/service_worker/service_worker_provider_host.h" 9 #include "content/browser/service_worker/service_worker_provider_host.h"
10 #include "content/browser/service_worker/service_worker_registration.h" 10 #include "content/browser/service_worker/service_worker_registration.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 } // namespace 52 } // namespace
53 53
54 void ServiceWorkerRequestHandler::InitializeHandler( 54 void ServiceWorkerRequestHandler::InitializeHandler(
55 net::URLRequest* request, 55 net::URLRequest* request,
56 ServiceWorkerContextWrapper* context_wrapper, 56 ServiceWorkerContextWrapper* context_wrapper,
57 webkit_blob::BlobStorageContext* blob_storage_context, 57 webkit_blob::BlobStorageContext* blob_storage_context,
58 int process_id, 58 int process_id,
59 int provider_id, 59 int provider_id,
60 ResourceType::Type resource_type) { 60 ResourceType::Type resource_type) {
61 if (!ServiceWorkerUtils::IsFeatureEnabled() || 61 if (!IsSchemeAndMethodSupported(request)) {
62 !IsSchemeAndMethodSupported(request)) {
63 return; 62 return;
64 } 63 }
65 64
66 if (!context_wrapper || !context_wrapper->context() || 65 if (!context_wrapper || !context_wrapper->context() ||
67 provider_id == kInvalidServiceWorkerProviderId) { 66 provider_id == kInvalidServiceWorkerProviderId) {
68 return; 67 return;
69 } 68 }
70 69
71 ServiceWorkerProviderHost* provider_host = 70 ServiceWorkerProviderHost* provider_host =
72 context_wrapper->context()->GetProviderHost(process_id, provider_id); 71 context_wrapper->context()->GetProviderHost(process_id, provider_id);
(...skipping 29 matching lines...) Expand all
102 base::WeakPtr<ServiceWorkerProviderHost> provider_host, 101 base::WeakPtr<ServiceWorkerProviderHost> provider_host,
103 base::WeakPtr<webkit_blob::BlobStorageContext> blob_storage_context, 102 base::WeakPtr<webkit_blob::BlobStorageContext> blob_storage_context,
104 ResourceType::Type resource_type) 103 ResourceType::Type resource_type)
105 : context_(context), 104 : context_(context),
106 provider_host_(provider_host), 105 provider_host_(provider_host),
107 blob_storage_context_(blob_storage_context), 106 blob_storage_context_(blob_storage_context),
108 resource_type_(resource_type) { 107 resource_type_(resource_type) {
109 } 108 }
110 109
111 } // namespace content 110 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698