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

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

Issue 615493003: [ServiceWorker] Plumbing the request credentials mode to the ServiceWorker. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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 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 <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void DisassociateRegistration(); 88 void DisassociateRegistration();
89 89
90 // Returns false if the version is not in the expected STARTING in our 90 // Returns false if the version is not in the expected STARTING in our
91 // process state. That would be indicative of a bad IPC message. 91 // process state. That would be indicative of a bad IPC message.
92 bool SetHostedVersionId(int64 versions_id); 92 bool SetHostedVersionId(int64 versions_id);
93 93
94 // Returns a handler for a request, the handler may return NULL if 94 // Returns a handler for a request, the handler may return NULL if
95 // the request doesn't require special handling. 95 // the request doesn't require special handling.
96 scoped_ptr<ServiceWorkerRequestHandler> CreateRequestHandler( 96 scoped_ptr<ServiceWorkerRequestHandler> CreateRequestHandler(
97 FetchRequestMode request_mode, 97 FetchRequestMode request_mode,
98 FetchCredentialsMode credentials_mode,
98 ResourceType resource_type, 99 ResourceType resource_type,
99 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, 100 base::WeakPtr<storage::BlobStorageContext> blob_storage_context,
100 scoped_refptr<ResourceRequestBody> body); 101 scoped_refptr<ResourceRequestBody> body);
101 102
102 // Returns true if |registration| can be associated with this provider. 103 // Returns true if |registration| can be associated with this provider.
103 bool CanAssociateRegistration(ServiceWorkerRegistration* registration); 104 bool CanAssociateRegistration(ServiceWorkerRegistration* registration);
104 105
105 // For use by the ServiceWorkerControlleeRequestHandler to disallow 106 // For use by the ServiceWorkerControlleeRequestHandler to disallow
106 // new registration association while a navigation is occurring and 107 // new registration association while a navigation is occurring and
107 // an existing registration is being looked for. 108 // an existing registration is being looked for.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 base::WeakPtr<ServiceWorkerContextCore> context_; 156 base::WeakPtr<ServiceWorkerContextCore> context_;
156 ServiceWorkerDispatcherHost* dispatcher_host_; 157 ServiceWorkerDispatcherHost* dispatcher_host_;
157 bool allow_association_; 158 bool allow_association_;
158 159
159 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); 160 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost);
160 }; 161 };
161 162
162 } // namespace content 163 } // namespace content
163 164
164 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 165 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698