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

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

Issue 154473002: Support redirectUrl at onHeadersReceived in WebRequest / DWR API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix WebRequestRulesRegistrySimpleTest.StageChecker test Created 6 years, 9 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
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/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
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
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
OLDNEW
« no previous file with comments | « net/cronet/android/url_request_context_peer.cc ('k') | net/proxy/proxy_script_fetcher_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698