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 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 const CompletionCallback& callback, | 157 const CompletionCallback& callback, |
158 const HttpResponseHeaders* original_response_headers, | 158 const HttpResponseHeaders* original_response_headers, |
159 scoped_refptr<HttpResponseHeaders>* override_response_headers, | 159 scoped_refptr<HttpResponseHeaders>* override_response_headers, |
160 GURL* allowed_unsafe_redirect_url) override { | 160 GURL* allowed_unsafe_redirect_url) override { |
161 return OK; | 161 return OK; |
162 } | 162 } |
163 | 163 |
164 void OnBeforeRedirect(URLRequest* request, | 164 void OnBeforeRedirect(URLRequest* request, |
165 const GURL& new_location) override {} | 165 const GURL& new_location) override {} |
166 | 166 |
167 void OnResponseStarted(URLRequest* request) override {} | 167 void OnResponseStarted(URLRequest* request, int net_error) override {} |
168 | 168 |
169 void OnCompleted(URLRequest* request, bool started) override {} | 169 void OnCompleted(URLRequest* request, bool started, int net_error) override {} |
170 | 170 |
171 void OnURLRequestDestroyed(URLRequest* request) override {} | 171 void OnURLRequestDestroyed(URLRequest* request) override {} |
172 | 172 |
173 void OnPACScriptError(int line_number, const base::string16& error) override { | 173 void OnPACScriptError(int line_number, const base::string16& error) override { |
174 } | 174 } |
175 | 175 |
176 NetworkDelegate::AuthRequiredResponse OnAuthRequired( | 176 NetworkDelegate::AuthRequiredResponse OnAuthRequired( |
177 URLRequest* request, | 177 URLRequest* request, |
178 const AuthChallengeInfo& auth_info, | 178 const AuthChallengeInfo& auth_info, |
179 const AuthCallback& callback, | 179 const AuthCallback& callback, |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 base::string16 text; | 491 base::string16 text; |
492 TestCompletionCallback callback; | 492 TestCompletionCallback callback; |
493 int result = pac_fetcher.Fetch(url, &text, callback.callback()); | 493 int result = pac_fetcher.Fetch(url, &text, callback.callback()); |
494 EXPECT_THAT(result, IsError(ERR_FAILED)); | 494 EXPECT_THAT(result, IsError(ERR_FAILED)); |
495 } | 495 } |
496 } | 496 } |
497 | 497 |
498 } // namespace | 498 } // namespace |
499 | 499 |
500 } // namespace net | 500 } // namespace net |
OLD | NEW |