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

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

Issue 576973004: Make ServiceWorkerFetchRequest and ServiceWorkerResponse header maps case insensitive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses comment from PS4 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 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_URL_REQUEST_JOB_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 // For FORWARD_TO_SERVICE_WORKER case. 120 // For FORWARD_TO_SERVICE_WORKER case.
121 void DidPrepareFetchEvent(); 121 void DidPrepareFetchEvent();
122 void DidDispatchFetchEvent(ServiceWorkerStatusCode status, 122 void DidDispatchFetchEvent(ServiceWorkerStatusCode status,
123 ServiceWorkerFetchEventResult fetch_result, 123 ServiceWorkerFetchEventResult fetch_result,
124 const ServiceWorkerResponse& response); 124 const ServiceWorkerResponse& response);
125 125
126 // Populates |http_response_headers_|. 126 // Populates |http_response_headers_|.
127 void CreateResponseHeader(int status_code, 127 void CreateResponseHeader(int status_code,
128 const std::string& status_text, 128 const std::string& status_text,
129 const std::map<std::string, std::string>& headers); 129 const ServiceWorkerHeaderMap& headers);
130 130
131 // Creates |http_response_info_| using |http_response_headers_| and calls 131 // Creates |http_response_info_| using |http_response_headers_| and calls
132 // NotifyHeadersComplete. 132 // NotifyHeadersComplete.
133 void CommitResponseHeader(); 133 void CommitResponseHeader();
134 134
135 // Creates and commits a response header indicating error. 135 // Creates and commits a response header indicating error.
136 void DeliverErrorResponse(); 136 void DeliverErrorResponse();
137 137
138 base::WeakPtr<ServiceWorkerProviderHost> provider_host_; 138 base::WeakPtr<ServiceWorkerProviderHost> provider_host_;
139 139
(...skipping 24 matching lines...) Expand all
164 scoped_ptr<storage::BlobDataHandle> request_body_blob_data_handle_; 164 scoped_ptr<storage::BlobDataHandle> request_body_blob_data_handle_;
165 165
166 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; 166 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_;
167 167
168 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); 168 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob);
169 }; 169 };
170 170
171 } // namespace content 171 } // namespace content
172 172
173 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ 173 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698