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/location.h" | 9 #include "base/location.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 int OnHeadersReceived( | 43 int OnHeadersReceived( |
44 URLRequest* request, | 44 URLRequest* request, |
45 const CompletionCallback& callback, | 45 const CompletionCallback& callback, |
46 const HttpResponseHeaders* original_response_headers, | 46 const HttpResponseHeaders* original_response_headers, |
47 scoped_refptr<HttpResponseHeaders>* override_response_headers, | 47 scoped_refptr<HttpResponseHeaders>* override_response_headers, |
48 GURL* allowed_unsafe_redirect_url) override { | 48 GURL* allowed_unsafe_redirect_url) override { |
49 return OK; | 49 return OK; |
50 } | 50 } |
51 void OnBeforeRedirect(URLRequest* request, | 51 void OnBeforeRedirect(URLRequest* request, |
52 const GURL& new_location) override {} | 52 const GURL& new_location) override {} |
53 void OnResponseStarted(URLRequest* request) override {} | 53 void OnResponseStarted(URLRequest* request, int net_error) override {} |
54 void OnCompleted(URLRequest* request, bool started) override {} | 54 void OnCompleted(URLRequest* request, bool started, int net_error) override {} |
55 void OnURLRequestDestroyed(URLRequest* request) override {} | 55 void OnURLRequestDestroyed(URLRequest* request) override {} |
56 | 56 |
57 void OnPACScriptError(int line_number, const base::string16& error) override { | 57 void OnPACScriptError(int line_number, const base::string16& error) override { |
58 got_pac_error_ = true; | 58 got_pac_error_ = true; |
59 } | 59 } |
60 AuthRequiredResponse OnAuthRequired(URLRequest* request, | 60 AuthRequiredResponse OnAuthRequired(URLRequest* request, |
61 const AuthChallengeInfo& auth_info, | 61 const AuthChallengeInfo& auth_info, |
62 const AuthCallback& callback, | 62 const AuthCallback& callback, |
63 AuthCredentials* credentials) override { | 63 AuthCredentials* credentials) override { |
64 return AUTH_REQUIRED_RESPONSE_NO_ACTION; | 64 return AUTH_REQUIRED_RESPONSE_NO_ACTION; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 FROM_HERE, base::Bind(&NetworkDelegateErrorObserver::OnPACScriptError, | 106 FROM_HERE, base::Bind(&NetworkDelegateErrorObserver::OnPACScriptError, |
107 base::Unretained(&observer), 42, base::string16())); | 107 base::Unretained(&observer), 42, base::string16())); |
108 thread.Stop(); | 108 thread.Stop(); |
109 base::RunLoop().RunUntilIdle(); | 109 base::RunLoop().RunUntilIdle(); |
110 // Shouldn't have crashed until here... | 110 // Shouldn't have crashed until here... |
111 } | 111 } |
112 | 112 |
113 } // namespace | 113 } // namespace |
114 | 114 |
115 } // namespace net | 115 } // namespace net |
OLD | NEW |