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

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 and address shimazu and yhirano's comments 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 static void InitializeHandler( 88 static void InitializeHandler(
89 net::URLRequest* request, 89 net::URLRequest* request,
90 ServiceWorkerContextWrapper* context_wrapper, 90 ServiceWorkerContextWrapper* context_wrapper,
91 storage::BlobStorageContext* blob_storage_context, 91 storage::BlobStorageContext* blob_storage_context,
92 int process_id, 92 int process_id,
93 int provider_id, 93 int provider_id,
94 bool skip_service_worker, 94 bool skip_service_worker,
95 FetchRequestMode request_mode, 95 FetchRequestMode request_mode,
96 FetchCredentialsMode credentials_mode, 96 FetchCredentialsMode credentials_mode,
97 FetchRedirectMode redirect_mode, 97 FetchRedirectMode redirect_mode,
98 const std::string& integrity,
98 ResourceType resource_type, 99 ResourceType resource_type,
99 RequestContextType request_context_type, 100 RequestContextType request_context_type,
100 RequestContextFrameType frame_type, 101 RequestContextFrameType frame_type,
101 scoped_refptr<ResourceRequestBodyImpl> body); 102 scoped_refptr<ResourceRequestBodyImpl> body);
102 103
103 // Returns the handler attached to |request|. This may return NULL 104 // Returns the handler attached to |request|. This may return NULL
104 // if no handler is attached. 105 // if no handler is attached.
105 static ServiceWorkerRequestHandler* GetHandler( 106 static ServiceWorkerRequestHandler* GetHandler(
106 const net::URLRequest* request); 107 const net::URLRequest* request);
107 108
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 std::unique_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_; 161 std::unique_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_;
161 int old_process_id_; 162 int old_process_id_;
162 int old_provider_id_; 163 int old_provider_id_;
163 164
164 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); 165 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler);
165 }; 166 };
166 167
167 } // namespace content 168 } // namespace content
168 169
169 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ 170 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698