OLD | NEW |
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 HttpRequestHeaders* headers) OVERRIDE { | 118 HttpRequestHeaders* headers) OVERRIDE { |
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 GURL* new_url, |
128 const HttpResponseHeaders* original_response_headers, | 129 const HttpResponseHeaders* original_response_headers, |
129 scoped_refptr<HttpResponseHeaders>* override_response_headers) | 130 scoped_refptr<HttpResponseHeaders>* override_response_headers) |
130 OVERRIDE { | 131 OVERRIDE { |
131 return OK; | 132 return OK; |
132 } | 133 } |
133 | 134 |
134 virtual void OnBeforeRedirect(URLRequest* request, | 135 virtual void OnBeforeRedirect(URLRequest* request, |
135 const GURL& new_location) OVERRIDE {} | 136 const GURL& new_location) OVERRIDE {} |
136 | 137 |
137 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {} | 138 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {} |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 { | 472 { |
472 GURL url(kEncodedUrlBroken); | 473 GURL url(kEncodedUrlBroken); |
473 base::string16 text; | 474 base::string16 text; |
474 TestCompletionCallback callback; | 475 TestCompletionCallback callback; |
475 int result = pac_fetcher.Fetch(url, &text, callback.callback()); | 476 int result = pac_fetcher.Fetch(url, &text, callback.callback()); |
476 EXPECT_EQ(ERR_FAILED, result); | 477 EXPECT_EQ(ERR_FAILED, result); |
477 } | 478 } |
478 } | 479 } |
479 | 480 |
480 } // namespace net | 481 } // namespace net |
OLD | NEW |