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/network_delegate_error_observer.h" | 5 #include "net/proxy/network_delegate_error_observer.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 const CompletionCallback& callback, | 34 const CompletionCallback& callback, |
35 HttpRequestHeaders* headers) OVERRIDE { | 35 HttpRequestHeaders* headers) OVERRIDE { |
36 return OK; | 36 return OK; |
37 } | 37 } |
38 virtual void OnSendHeaders(URLRequest* request, | 38 virtual void OnSendHeaders(URLRequest* request, |
39 const HttpRequestHeaders& headers) OVERRIDE {} | 39 const HttpRequestHeaders& headers) OVERRIDE {} |
40 virtual int OnHeadersReceived( | 40 virtual int OnHeadersReceived( |
41 URLRequest* request, | 41 URLRequest* request, |
42 const CompletionCallback& callback, | 42 const CompletionCallback& callback, |
43 const HttpResponseHeaders* original_response_headers, | 43 const HttpResponseHeaders* original_response_headers, |
44 scoped_refptr<HttpResponseHeaders>* override_response_headers) OVERRIDE { | 44 scoped_refptr<HttpResponseHeaders>* override_response_headers, |
| 45 GURL* allowed_unsafe_redirect_url) OVERRIDE { |
45 return net::OK; | 46 return net::OK; |
46 } | 47 } |
47 virtual void OnBeforeRedirect(URLRequest* request, | 48 virtual void OnBeforeRedirect(URLRequest* request, |
48 const GURL& new_location) OVERRIDE {} | 49 const GURL& new_location) OVERRIDE {} |
49 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {} | 50 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {} |
50 virtual void OnRawBytesRead(const URLRequest& request, | 51 virtual void OnRawBytesRead(const URLRequest& request, |
51 int bytes_read) OVERRIDE {} | 52 int bytes_read) OVERRIDE {} |
52 virtual void OnCompleted(URLRequest* request, bool started) OVERRIDE {} | 53 virtual void OnCompleted(URLRequest* request, bool started) OVERRIDE {} |
53 virtual void OnURLRequestDestroyed(URLRequest* request) OVERRIDE {} | 54 virtual void OnURLRequestDestroyed(URLRequest* request) OVERRIDE {} |
54 | 55 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 base::Bind(&NetworkDelegateErrorObserver::OnPACScriptError, | 121 base::Bind(&NetworkDelegateErrorObserver::OnPACScriptError, |
121 base::Unretained(&observer), | 122 base::Unretained(&observer), |
122 42, | 123 42, |
123 base::string16())); | 124 base::string16())); |
124 thread.Stop(); | 125 thread.Stop(); |
125 base::MessageLoop::current()->RunUntilIdle(); | 126 base::MessageLoop::current()->RunUntilIdle(); |
126 // Shouldn't have crashed until here... | 127 // Shouldn't have crashed until here... |
127 } | 128 } |
128 | 129 |
129 } // namespace net | 130 } // namespace net |
OLD | NEW |