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

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: fix WebRequestRulesRegistrySimpleTest.StageChecker test Created 6 years, 9 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
« no previous file with comments | « net/proxy/proxy_script_fetcher_impl_unittest.cc ('k') | net/url_request/url_request_http_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 const HttpResponseHeaders* original_response_headers, 66 const HttpResponseHeaders* original_response_headers,
67 scoped_refptr<HttpResponseHeaders>* override_response_headers) 67 scoped_refptr<HttpResponseHeaders>* override_response_headers,
68 OVERRIDE { 68 GURL* allowed_unsafe_redirect_url) OVERRIDE {
69 return OK; 69 return OK;
70 } 70 }
71 71
72 virtual void OnBeforeRedirect(URLRequest* request, 72 virtual void OnBeforeRedirect(URLRequest* request,
73 const GURL& new_location) OVERRIDE {} 73 const GURL& new_location) OVERRIDE {}
74 74
75 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {} 75 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {}
76 76
77 virtual void OnRawBytesRead(const URLRequest& request, 77 virtual void OnRawBytesRead(const URLRequest& request,
78 int bytes_read) OVERRIDE {} 78 int bytes_read) OVERRIDE {}
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 } 320 }
321 #endif 321 #endif
322 storage->set_job_factory(job_factory); 322 storage->set_job_factory(job_factory);
323 323
324 // TODO(willchan): Support sdch. 324 // TODO(willchan): Support sdch.
325 325
326 return context; 326 return context;
327 } 327 }
328 328
329 } // namespace net 329 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/proxy_script_fetcher_impl_unittest.cc ('k') | net/url_request/url_request_http_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698