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

Side by Side Diff: net/proxy/proxy_script_fetcher_impl_unittest.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 "net/proxy/proxy_script_fetcher_impl.h" 5 #include "net/proxy/proxy_script_fetcher_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 return OK; 119 return OK;
120 } 120 }
121 121
122 virtual void OnSendHeaders(URLRequest* request, 122 virtual void OnSendHeaders(URLRequest* request,
123 const HttpRequestHeaders& headers) OVERRIDE {} 123 const HttpRequestHeaders& headers) OVERRIDE {}
124 124
125 virtual int OnHeadersReceived( 125 virtual int OnHeadersReceived(
126 URLRequest* request, 126 URLRequest* request,
127 const CompletionCallback& callback, 127 const CompletionCallback& callback,
128 const HttpResponseHeaders* original_response_headers, 128 const HttpResponseHeaders* original_response_headers,
129 scoped_refptr<HttpResponseHeaders>* override_response_headers) 129 scoped_refptr<HttpResponseHeaders>* override_response_headers,
130 OVERRIDE { 130 GURL* allowed_unsafe_redirect_url) OVERRIDE {
131 return OK; 131 return OK;
132 } 132 }
133 133
134 virtual void OnBeforeRedirect(URLRequest* request, 134 virtual void OnBeforeRedirect(URLRequest* request,
135 const GURL& new_location) OVERRIDE {} 135 const GURL& new_location) OVERRIDE {}
136 136
137 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {} 137 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {}
138 138
139 virtual void OnRawBytesRead(const URLRequest& request, 139 virtual void OnRawBytesRead(const URLRequest& request,
140 int bytes_read) OVERRIDE {} 140 int bytes_read) OVERRIDE {}
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 { 471 {
472 GURL url(kEncodedUrlBroken); 472 GURL url(kEncodedUrlBroken);
473 base::string16 text; 473 base::string16 text;
474 TestCompletionCallback callback; 474 TestCompletionCallback callback;
475 int result = pac_fetcher.Fetch(url, &text, callback.callback()); 475 int result = pac_fetcher.Fetch(url, &text, callback.callback());
476 EXPECT_EQ(ERR_FAILED, result); 476 EXPECT_EQ(ERR_FAILED, result);
477 } 477 }
478 } 478 }
479 479
480 } // namespace net 480 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/network_delegate_error_observer_unittest.cc ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698