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

Side by Side Diff: android_webview/browser/net/aw_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: 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
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 "android_webview/browser/net/aw_network_delegate.h" 5 #include "android_webview/browser/net/aw_network_delegate.h"
6 6
7 #include "android_webview/browser/aw_cookie_access_policy.h" 7 #include "android_webview/browser/aw_cookie_access_policy.h"
8 #include "base/android/build_info.h" 8 #include "base/android/build_info.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 void AwNetworkDelegate::OnSendHeaders(net::URLRequest* request, 40 void AwNetworkDelegate::OnSendHeaders(net::URLRequest* request,
41 const net::HttpRequestHeaders& headers) { 41 const net::HttpRequestHeaders& headers) {
42 } 42 }
43 43
44 int AwNetworkDelegate::OnHeadersReceived( 44 int AwNetworkDelegate::OnHeadersReceived(
45 net::URLRequest* request, 45 net::URLRequest* request,
46 const net::CompletionCallback& callback, 46 const net::CompletionCallback& callback,
47 const net::HttpResponseHeaders* original_response_headers, 47 const net::HttpResponseHeaders* original_response_headers,
48 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) { 48 scoped_refptr<net::HttpResponseHeaders>* override_response_headers,
49 GURL* allowed_unsafe_redirect_url) {
49 return net::OK; 50 return net::OK;
50 } 51 }
51 52
52 void AwNetworkDelegate::OnBeforeRedirect(net::URLRequest* request, 53 void AwNetworkDelegate::OnBeforeRedirect(net::URLRequest* request,
53 const GURL& new_location) { 54 const GURL& new_location) {
54 } 55 }
55 56
56 void AwNetworkDelegate::OnResponseStarted(net::URLRequest* request) { 57 void AwNetworkDelegate::OnResponseStarted(net::URLRequest* request) {
57 } 58 }
58 59
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return false; 103 return false;
103 } 104 }
104 105
105 int AwNetworkDelegate::OnBeforeSocketStreamConnect( 106 int AwNetworkDelegate::OnBeforeSocketStreamConnect(
106 net::SocketStream* stream, 107 net::SocketStream* stream,
107 const net::CompletionCallback& callback) { 108 const net::CompletionCallback& callback) {
108 return net::OK; 109 return net::OK;
109 } 110 }
110 111
111 } // namespace android_webview 112 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698