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

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

Issue 2954343005: Merge ResourceRequestBodyImpl and ResourceRequestBody. (Closed)
Patch Set: Remove comment Created 3 years, 5 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 20 matching lines...) Expand all
31 #include "content/public/common/resource_type.h" 31 #include "content/public/common/resource_type.h"
32 #include "mojo/public/cpp/bindings/associated_binding.h" 32 #include "mojo/public/cpp/bindings/associated_binding.h"
33 33
34 namespace storage { 34 namespace storage {
35 class BlobStorageContext; 35 class BlobStorageContext;
36 } 36 }
37 37
38 namespace content { 38 namespace content {
39 39
40 class MessagePort; 40 class MessagePort;
41 class ResourceRequestBodyImpl; 41 class ResourceRequestBody;
42 class ServiceWorkerContextCore; 42 class ServiceWorkerContextCore;
43 class ServiceWorkerDispatcherHost; 43 class ServiceWorkerDispatcherHost;
44 class ServiceWorkerRequestHandler; 44 class ServiceWorkerRequestHandler;
45 class ServiceWorkerVersion; 45 class ServiceWorkerVersion;
46 class WebContents; 46 class WebContents;
47 47
48 // This class is the browser-process representation of a service worker 48 // This class is the browser-process representation of a service worker
49 // provider. There are two general types of providers: 1) those for a client 49 // provider. There are two general types of providers: 1) those for a client
50 // (windows, dedicated workers, or shared workers), and 2) those for hosting a 50 // (windows, dedicated workers, or shared workers), and 2) those for hosting a
51 // running service worker. 51 // running service worker.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // Returns a handler for a request, the handler may return NULL if 205 // Returns a handler for a request, the handler may return NULL if
206 // the request doesn't require special handling. 206 // the request doesn't require special handling.
207 std::unique_ptr<ServiceWorkerRequestHandler> CreateRequestHandler( 207 std::unique_ptr<ServiceWorkerRequestHandler> CreateRequestHandler(
208 FetchRequestMode request_mode, 208 FetchRequestMode request_mode,
209 FetchCredentialsMode credentials_mode, 209 FetchCredentialsMode credentials_mode,
210 FetchRedirectMode redirect_mode, 210 FetchRedirectMode redirect_mode,
211 ResourceType resource_type, 211 ResourceType resource_type,
212 RequestContextType request_context_type, 212 RequestContextType request_context_type,
213 RequestContextFrameType frame_type, 213 RequestContextFrameType frame_type,
214 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, 214 base::WeakPtr<storage::BlobStorageContext> blob_storage_context,
215 scoped_refptr<ResourceRequestBodyImpl> body, 215 scoped_refptr<ResourceRequestBody> body,
216 bool skip_service_worker); 216 bool skip_service_worker);
217 217
218 // Used to get a ServiceWorkerObjectInfo to send to the renderer. Finds an 218 // Used to get a ServiceWorkerObjectInfo to send to the renderer. Finds an
219 // existing ServiceWorkerHandle, and increments its reference count, or else 219 // existing ServiceWorkerHandle, and increments its reference count, or else
220 // creates a new one (initialized to ref count 1). Returns the 220 // creates a new one (initialized to ref count 1). Returns the
221 // ServiceWorkerInfo from the handle. The renderer is expected to use 221 // ServiceWorkerInfo from the handle. The renderer is expected to use
222 // ServiceWorkerHandleReference::Adopt to balance out the ref count. 222 // ServiceWorkerHandleReference::Adopt to balance out the ref count.
223 ServiceWorkerObjectInfo GetOrCreateServiceWorkerHandle( 223 ServiceWorkerObjectInfo GetOrCreateServiceWorkerHandle(
224 ServiceWorkerVersion* version); 224 ServiceWorkerVersion* version);
225 225
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 std::unordered_map<mojom::ServiceWorkerWorkerClient*, 437 std::unordered_map<mojom::ServiceWorkerWorkerClient*,
438 mojom::ServiceWorkerWorkerClientAssociatedPtr> 438 mojom::ServiceWorkerWorkerClientAssociatedPtr>
439 worker_clients_; 439 worker_clients_;
440 440
441 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); 441 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost);
442 }; 442 };
443 443
444 } // namespace content 444 } // namespace content
445 445
446 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 446 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698