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

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

Issue 1284993005: Notify NetworkDelegate when bytes have been received over the network. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed empty cronet OnRawBytesRead implementation Created 5 years, 4 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/base/network_delegate_impl.cc ('k') | net/proxy/proxy_script_fetcher_impl_unittest.cc » ('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/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 URLRequest* request, 43 URLRequest* request,
44 const CompletionCallback& callback, 44 const CompletionCallback& callback,
45 const HttpResponseHeaders* original_response_headers, 45 const HttpResponseHeaders* original_response_headers,
46 scoped_refptr<HttpResponseHeaders>* override_response_headers, 46 scoped_refptr<HttpResponseHeaders>* override_response_headers,
47 GURL* allowed_unsafe_redirect_url) override { 47 GURL* allowed_unsafe_redirect_url) override {
48 return OK; 48 return OK;
49 } 49 }
50 void OnBeforeRedirect(URLRequest* request, 50 void OnBeforeRedirect(URLRequest* request,
51 const GURL& new_location) override {} 51 const GURL& new_location) override {}
52 void OnResponseStarted(URLRequest* request) override {} 52 void OnResponseStarted(URLRequest* request) override {}
53 void OnRawBytesRead(const URLRequest& request, int bytes_read) override {}
54 void OnCompleted(URLRequest* request, bool started) override {} 53 void OnCompleted(URLRequest* request, bool started) override {}
55 void OnURLRequestDestroyed(URLRequest* request) override {} 54 void OnURLRequestDestroyed(URLRequest* request) override {}
56 55
57 void OnPACScriptError(int line_number, const base::string16& error) override { 56 void OnPACScriptError(int line_number, const base::string16& error) override {
58 got_pac_error_ = true; 57 got_pac_error_ = true;
59 } 58 }
60 AuthRequiredResponse OnAuthRequired(URLRequest* request, 59 AuthRequiredResponse OnAuthRequired(URLRequest* request,
61 const AuthChallengeInfo& auth_info, 60 const AuthChallengeInfo& auth_info,
62 const AuthCallback& callback, 61 const AuthCallback& callback,
63 AuthCredentials* credentials) override { 62 AuthCredentials* credentials) override {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 FROM_HERE, base::Bind(&NetworkDelegateErrorObserver::OnPACScriptError, 105 FROM_HERE, base::Bind(&NetworkDelegateErrorObserver::OnPACScriptError,
107 base::Unretained(&observer), 42, base::string16())); 106 base::Unretained(&observer), 42, base::string16()));
108 thread.Stop(); 107 thread.Stop();
109 base::MessageLoop::current()->RunUntilIdle(); 108 base::MessageLoop::current()->RunUntilIdle();
110 // Shouldn't have crashed until here... 109 // Shouldn't have crashed until here...
111 } 110 }
112 111
113 } // namespace 112 } // namespace
114 113
115 } // namespace net 114 } // namespace net
OLDNEW
« no previous file with comments | « net/base/network_delegate_impl.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