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

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

Issue 2941883003: [ServiceWorker] Fetch event should return integrity value (Closed)
Patch Set: Rebase 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 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 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 static void InitializeHandler( 89 static void InitializeHandler(
90 net::URLRequest* request, 90 net::URLRequest* request,
91 ServiceWorkerContextWrapper* context_wrapper, 91 ServiceWorkerContextWrapper* context_wrapper,
92 storage::BlobStorageContext* blob_storage_context, 92 storage::BlobStorageContext* blob_storage_context,
93 int process_id, 93 int process_id,
94 int provider_id, 94 int provider_id,
95 bool skip_service_worker, 95 bool skip_service_worker,
96 FetchRequestMode request_mode, 96 FetchRequestMode request_mode,
97 FetchCredentialsMode credentials_mode, 97 FetchCredentialsMode credentials_mode,
98 FetchRedirectMode redirect_mode, 98 FetchRedirectMode redirect_mode,
99 const std::string& integrity,
99 ResourceType resource_type, 100 ResourceType resource_type,
100 RequestContextType request_context_type, 101 RequestContextType request_context_type,
101 RequestContextFrameType frame_type, 102 RequestContextFrameType frame_type,
falken 2017/07/07 00:56:11 (not related to your CL, but we should group all t
102 scoped_refptr<ResourceRequestBody> body); 103 scoped_refptr<ResourceRequestBody> body);
103 104
104 // Returns the handler attached to |request|. This may return NULL 105 // Returns the handler attached to |request|. This may return NULL
105 // if no handler is attached. 106 // if no handler is attached.
106 static ServiceWorkerRequestHandler* GetHandler( 107 static ServiceWorkerRequestHandler* GetHandler(
107 const net::URLRequest* request); 108 const net::URLRequest* request);
108 109
109 // Creates a protocol interceptor for ServiceWorker. 110 // Creates a protocol interceptor for ServiceWorker.
110 static std::unique_ptr<net::URLRequestInterceptor> CreateInterceptor( 111 static std::unique_ptr<net::URLRequestInterceptor> CreateInterceptor(
111 ResourceContext* resource_context); 112 ResourceContext* resource_context);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 std::unique_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_; 162 std::unique_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_;
162 int old_process_id_; 163 int old_process_id_;
163 int old_provider_id_; 164 int old_provider_id_;
164 165
165 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); 166 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler);
166 }; 167 };
167 168
168 } // namespace content 169 } // namespace content
169 170
170 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ 171 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698