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

Side by Side Diff: content/browser/loader/layered_resource_handler.cc

Issue 2164113002: Remove ResourceHandler::OnBeforeNetworkStart (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Oops Created 4 years, 5 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 "content/browser/loader/layered_resource_handler.h" 5 #include "content/browser/loader/layered_resource_handler.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 DCHECK(next_handler_.get()); 42 DCHECK(next_handler_.get());
43 return next_handler_->OnResponseStarted(response, defer); 43 return next_handler_->OnResponseStarted(response, defer);
44 } 44 }
45 45
46 bool LayeredResourceHandler::OnWillStart(const GURL& url, 46 bool LayeredResourceHandler::OnWillStart(const GURL& url,
47 bool* defer) { 47 bool* defer) {
48 DCHECK(next_handler_.get()); 48 DCHECK(next_handler_.get());
49 return next_handler_->OnWillStart(url, defer); 49 return next_handler_->OnWillStart(url, defer);
50 } 50 }
51 51
52 bool LayeredResourceHandler::OnBeforeNetworkStart(const GURL& url,
53 bool* defer) {
54 DCHECK(next_handler_.get());
55 return next_handler_->OnBeforeNetworkStart(url, defer);
56 }
57
58 bool LayeredResourceHandler::OnWillRead(scoped_refptr<net::IOBuffer>* buf, 52 bool LayeredResourceHandler::OnWillRead(scoped_refptr<net::IOBuffer>* buf,
59 int* buf_size, 53 int* buf_size,
60 int min_size) { 54 int min_size) {
61 DCHECK(next_handler_.get()); 55 DCHECK(next_handler_.get());
62 return next_handler_->OnWillRead(buf, buf_size, min_size); 56 return next_handler_->OnWillRead(buf, buf_size, min_size);
63 } 57 }
64 58
65 bool LayeredResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { 59 bool LayeredResourceHandler::OnReadCompleted(int bytes_read, bool* defer) {
66 DCHECK(next_handler_.get()); 60 DCHECK(next_handler_.get());
67 return next_handler_->OnReadCompleted(bytes_read, defer); 61 return next_handler_->OnReadCompleted(bytes_read, defer);
68 } 62 }
69 63
70 void LayeredResourceHandler::OnResponseCompleted( 64 void LayeredResourceHandler::OnResponseCompleted(
71 const net::URLRequestStatus& status, 65 const net::URLRequestStatus& status,
72 const std::string& security_info, 66 const std::string& security_info,
73 bool* defer) { 67 bool* defer) {
74 DCHECK(next_handler_.get()); 68 DCHECK(next_handler_.get());
75 next_handler_->OnResponseCompleted(status, security_info, defer); 69 next_handler_->OnResponseCompleted(status, security_info, defer);
76 } 70 }
77 71
78 void LayeredResourceHandler::OnDataDownloaded(int bytes_downloaded) { 72 void LayeredResourceHandler::OnDataDownloaded(int bytes_downloaded) {
79 DCHECK(next_handler_.get()); 73 DCHECK(next_handler_.get());
80 next_handler_->OnDataDownloaded(bytes_downloaded); 74 next_handler_->OnDataDownloaded(bytes_downloaded);
81 } 75 }
82 76
83 } // namespace content 77 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/layered_resource_handler.h ('k') | content/browser/loader/mime_type_resource_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698