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

Side by Side Diff: net/url_request/url_request_context_builder.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, 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/proxy/proxy_script_fetcher_impl_unittest.cc ('k') | net/url_request/url_request_http_job.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/url_request/url_request_context_builder.h" 5 #include "net/url_request/url_request_context_builder.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 scoped_refptr<HttpResponseHeaders>* override_response_headers, 82 scoped_refptr<HttpResponseHeaders>* override_response_headers,
83 GURL* allowed_unsafe_redirect_url) override { 83 GURL* allowed_unsafe_redirect_url) override {
84 return OK; 84 return OK;
85 } 85 }
86 86
87 void OnBeforeRedirect(URLRequest* request, 87 void OnBeforeRedirect(URLRequest* request,
88 const GURL& new_location) override {} 88 const GURL& new_location) override {}
89 89
90 void OnResponseStarted(URLRequest* request) override {} 90 void OnResponseStarted(URLRequest* request) override {}
91 91
92 void OnRawBytesRead(const URLRequest& request, int bytes_read) override {}
93
94 void OnCompleted(URLRequest* request, bool started) override {} 92 void OnCompleted(URLRequest* request, bool started) override {}
95 93
96 void OnURLRequestDestroyed(URLRequest* request) override {} 94 void OnURLRequestDestroyed(URLRequest* request) override {}
97 95
98 void OnPACScriptError(int line_number, const base::string16& error) override { 96 void OnPACScriptError(int line_number, const base::string16& error) override {
99 } 97 }
100 98
101 NetworkDelegate::AuthRequiredResponse OnAuthRequired( 99 NetworkDelegate::AuthRequiredResponse OnAuthRequired(
102 URLRequest* request, 100 URLRequest* request,
103 const AuthChallengeInfo& auth_info, 101 const AuthChallengeInfo& auth_info,
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 } 439 }
442 url_request_interceptors_.weak_clear(); 440 url_request_interceptors_.weak_clear();
443 } 441 }
444 storage->set_job_factory(top_job_factory.release()); 442 storage->set_job_factory(top_job_factory.release());
445 // TODO(willchan): Support sdch. 443 // TODO(willchan): Support sdch.
446 444
447 return context; 445 return context;
448 } 446 }
449 447
450 } // namespace net 448 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/proxy_script_fetcher_impl_unittest.cc ('k') | net/url_request/url_request_http_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698