| Index: content/browser/service_worker/service_worker_url_request_job.cc
|
| diff --git a/content/browser/service_worker/service_worker_url_request_job.cc b/content/browser/service_worker/service_worker_url_request_job.cc
|
| index e74767d4dba93a91e56b698f30d85561db981053..bfa2da240d42fc66425b4cdad3a581dd20036e88 100644
|
| --- a/content/browser/service_worker/service_worker_url_request_job.cc
|
| +++ b/content/browser/service_worker/service_worker_url_request_job.cc
|
| @@ -414,14 +414,14 @@ void ServiceWorkerURLRequestJob::DidDispatchFetchEvent(
|
| void ServiceWorkerURLRequestJob::CreateResponseHeader(
|
| int status_code,
|
| const std::string& status_text,
|
| - const std::map<std::string, std::string>& headers) {
|
| + const ServiceWorkerHeaderMap& headers) {
|
| // TODO(kinuko): If the response has an identifier to on-disk cache entry,
|
| // pull response header from the disk.
|
| std::string status_line(
|
| base::StringPrintf("HTTP/1.1 %d %s", status_code, status_text.c_str()));
|
| status_line.push_back('\0');
|
| http_response_headers_ = new net::HttpResponseHeaders(status_line);
|
| - for (std::map<std::string, std::string>::const_iterator it = headers.begin();
|
| + for (ServiceWorkerHeaderMap::const_iterator it = headers.begin();
|
| it != headers.end();
|
| ++it) {
|
| std::string header;
|
| @@ -442,9 +442,8 @@ void ServiceWorkerURLRequestJob::CommitResponseHeader() {
|
| void ServiceWorkerURLRequestJob::DeliverErrorResponse() {
|
| // TODO(falken): Print an error to the console of the ServiceWorker and of
|
| // the requesting page.
|
| - CreateResponseHeader(500,
|
| - "Service Worker Response Error",
|
| - std::map<std::string, std::string>());
|
| + CreateResponseHeader(
|
| + 500, "Service Worker Response Error", ServiceWorkerHeaderMap());
|
| CommitResponseHeader();
|
| }
|
|
|
|
|