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/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 HttpRequestHeaders* headers) OVERRIDE { | 134 HttpRequestHeaders* headers) OVERRIDE { |
135 return OK; | 135 return OK; |
136 } | 136 } |
137 | 137 |
138 virtual void OnSendHeaders(URLRequest* request, | 138 virtual void OnSendHeaders(URLRequest* request, |
139 const HttpRequestHeaders& headers) OVERRIDE {} | 139 const HttpRequestHeaders& headers) OVERRIDE {} |
140 | 140 |
141 virtual int OnHeadersReceived( | 141 virtual int OnHeadersReceived( |
142 URLRequest* request, | 142 URLRequest* request, |
143 const CompletionCallback& callback, | 143 const CompletionCallback& callback, |
144 HttpResponseHeaders* original_response_headers, | 144 const HttpResponseHeaders* original_response_headers, |
145 scoped_refptr<HttpResponseHeaders>* override_response_headers) | 145 scoped_refptr<HttpResponseHeaders>* override_response_headers) |
146 OVERRIDE { | 146 OVERRIDE { |
147 return OK; | 147 return OK; |
148 } | 148 } |
149 | 149 |
150 virtual void OnBeforeRedirect(URLRequest* request, | 150 virtual void OnBeforeRedirect(URLRequest* request, |
151 const GURL& new_location) OVERRIDE {} | 151 const GURL& new_location) OVERRIDE {} |
152 | 152 |
153 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {} | 153 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {} |
154 | 154 |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 { | 488 { |
489 GURL url(kEncodedUrlBroken); | 489 GURL url(kEncodedUrlBroken); |
490 string16 text; | 490 string16 text; |
491 TestCompletionCallback callback; | 491 TestCompletionCallback callback; |
492 int result = pac_fetcher.Fetch(url, &text, callback.callback()); | 492 int result = pac_fetcher.Fetch(url, &text, callback.callback()); |
493 EXPECT_EQ(ERR_FAILED, result); | 493 EXPECT_EQ(ERR_FAILED, result); |
494 } | 494 } |
495 } | 495 } |
496 | 496 |
497 } // namespace net | 497 } // namespace net |
OLD | NEW |