| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |