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

Side by Side Diff: content/shell/browser/shell_network_delegate.cc

Issue 154473002: Support redirectUrl at onHeadersReceived in WebRequest / DWR API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +net test, fix nit 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/shell/browser/shell_network_delegate.h" 5 #include "content/shell/browser/shell_network_delegate.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/base/static_cookie_policy.h" 8 #include "net/base/static_cookie_policy.h"
9 #include "net/url_request/url_request.h" 9 #include "net/url_request/url_request.h"
10 10
(...skipping 28 matching lines...) Expand all
39 } 39 }
40 40
41 void ShellNetworkDelegate::OnSendHeaders( 41 void ShellNetworkDelegate::OnSendHeaders(
42 net::URLRequest* request, 42 net::URLRequest* request,
43 const net::HttpRequestHeaders& headers) { 43 const net::HttpRequestHeaders& headers) {
44 } 44 }
45 45
46 int ShellNetworkDelegate::OnHeadersReceived( 46 int ShellNetworkDelegate::OnHeadersReceived(
47 net::URLRequest* request, 47 net::URLRequest* request,
48 const net::CompletionCallback& callback, 48 const net::CompletionCallback& callback,
49 GURL* new_url,
49 const net::HttpResponseHeaders* original_response_headers, 50 const net::HttpResponseHeaders* original_response_headers,
50 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) { 51 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) {
51 return net::OK; 52 return net::OK;
52 } 53 }
53 54
54 void ShellNetworkDelegate::OnBeforeRedirect(net::URLRequest* request, 55 void ShellNetworkDelegate::OnBeforeRedirect(net::URLRequest* request,
55 const GURL& new_location) { 56 const GURL& new_location) {
56 } 57 }
57 58
58 void ShellNetworkDelegate::OnResponseStarted(net::URLRequest* request) { 59 void ShellNetworkDelegate::OnResponseStarted(net::URLRequest* request) {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 return false; 114 return false;
114 } 115 }
115 116
116 int ShellNetworkDelegate::OnBeforeSocketStreamConnect( 117 int ShellNetworkDelegate::OnBeforeSocketStreamConnect(
117 net::SocketStream* socket, 118 net::SocketStream* socket,
118 const net::CompletionCallback& callback) { 119 const net::CompletionCallback& callback) {
119 return net::OK; 120 return net::OK;
120 } 121 }
121 122
122 } // namespace content 123 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698