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

Side by Side Diff: net/url_request/url_request_context_builder.cc

Issue 154473002: Support redirectUrl at onHeadersReceived in WebRequest / DWR API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/url_request/url_request_context_builder.h" 5 #include "net/url_request/url_request_context_builder.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 HttpRequestHeaders* headers) OVERRIDE { 56 HttpRequestHeaders* headers) OVERRIDE {
57 return OK; 57 return OK;
58 } 58 }
59 59
60 virtual void OnSendHeaders(URLRequest* request, 60 virtual void OnSendHeaders(URLRequest* request,
61 const HttpRequestHeaders& headers) OVERRIDE {} 61 const HttpRequestHeaders& headers) OVERRIDE {}
62 62
63 virtual int OnHeadersReceived( 63 virtual int OnHeadersReceived(
64 URLRequest* request, 64 URLRequest* request,
65 const CompletionCallback& callback, 65 const CompletionCallback& callback,
66 GURL* new_url,
66 const HttpResponseHeaders* original_response_headers, 67 const HttpResponseHeaders* original_response_headers,
67 scoped_refptr<HttpResponseHeaders>* override_response_headers) 68 scoped_refptr<HttpResponseHeaders>* override_response_headers)
68 OVERRIDE { 69 OVERRIDE {
69 return OK; 70 return OK;
70 } 71 }
71 72
72 virtual void OnBeforeRedirect(URLRequest* request, 73 virtual void OnBeforeRedirect(URLRequest* request,
73 const GURL& new_location) OVERRIDE {} 74 const GURL& new_location) OVERRIDE {}
74 75
75 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {} 76 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {}
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 } 321 }
321 #endif 322 #endif
322 storage->set_job_factory(job_factory); 323 storage->set_job_factory(job_factory);
323 324
324 // TODO(willchan): Support sdch. 325 // TODO(willchan): Support sdch.
325 326
326 return context; 327 return context;
327 } 328 }
328 329
329 } // namespace net 330 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698