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

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

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: darin comments Created 6 years, 4 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 | Annotate | Revision Log
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 #include "content/browser/service_worker/service_worker_url_request_job.h" 5 #include "content/browser/service_worker/service_worker_url_request_job.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 110 }
111 111
112 blob_request_->Read(buf, buf_size, bytes_read); 112 blob_request_->Read(buf, buf_size, bytes_read);
113 net::URLRequestStatus status = blob_request_->status(); 113 net::URLRequestStatus status = blob_request_->status();
114 SetStatus(status); 114 SetStatus(status);
115 if (status.is_io_pending()) 115 if (status.is_io_pending())
116 return false; 116 return false;
117 return status.is_success(); 117 return status.is_success();
118 } 118 }
119 119
120 void ServiceWorkerURLRequestJob::OnReceivedRedirect(net::URLRequest* request, 120 void ServiceWorkerURLRequestJob::OnReceivedRedirect(
121 const GURL& new_url, 121 net::URLRequest* request,
122 bool* defer_redirect) { 122 const net::RedirectInfo& redirect_info,
123 bool* defer_redirect) {
123 NOTREACHED(); 124 NOTREACHED();
124 } 125 }
125 126
126 void ServiceWorkerURLRequestJob::OnAuthRequired( 127 void ServiceWorkerURLRequestJob::OnAuthRequired(
127 net::URLRequest* request, 128 net::URLRequest* request,
128 net::AuthChallengeInfo* auth_info) { 129 net::AuthChallengeInfo* auth_info) {
129 NOTREACHED(); 130 NOTREACHED();
130 } 131 }
131 132
132 void ServiceWorkerURLRequestJob::OnCertificateRequested( 133 void ServiceWorkerURLRequestJob::OnCertificateRequested(
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 void ServiceWorkerURLRequestJob::DeliverErrorResponse() { 314 void ServiceWorkerURLRequestJob::DeliverErrorResponse() {
314 // TODO(falken): Print an error to the console of the ServiceWorker and of 315 // TODO(falken): Print an error to the console of the ServiceWorker and of
315 // the requesting page. 316 // the requesting page.
316 CreateResponseHeader(500, 317 CreateResponseHeader(500,
317 "Service Worker Response Error", 318 "Service Worker Response Error",
318 std::map<std::string, std::string>()); 319 std::map<std::string, std::string>());
319 CommitResponseHeader(); 320 CommitResponseHeader();
320 } 321 }
321 322
322 } // namespace content 323 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698