Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: net/proxy/network_delegate_error_observer_unittest.cc

Issue 2265873002: Adjust callers and networking delegates in net/ to modified APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@URLRequestRead
Patch Set: rebased on top of URLRequest::Read CL Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/nqe/throughput_analyzer_unittest.cc ('k') | net/proxy/proxy_script_fetcher_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/nqe/throughput_analyzer_unittest.cc ('k') | net/proxy/proxy_script_fetcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698