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

Side by Side Diff: content/browser/loader/navigation_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/navigation_resource_handler.h" 5 #include "content/browser/loader/navigation_resource_handler.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/browser/loader/navigation_url_loader_impl_core.h" 10 #include "content/browser/loader/navigation_url_loader_impl_core.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 std::move(cloned_data)); 114 std::move(cloned_data));
115 *defer = true; 115 *defer = true;
116 116
117 return true; 117 return true;
118 } 118 }
119 119
120 bool NavigationResourceHandler::OnWillStart(const GURL& url, bool* defer) { 120 bool NavigationResourceHandler::OnWillStart(const GURL& url, bool* defer) {
121 return true; 121 return true;
122 } 122 }
123 123
124 bool NavigationResourceHandler::OnBeforeNetworkStart(const GURL& url,
125 bool* defer) {
126 return true;
127 }
128
129 bool NavigationResourceHandler::OnWillRead(scoped_refptr<net::IOBuffer>* buf, 124 bool NavigationResourceHandler::OnWillRead(scoped_refptr<net::IOBuffer>* buf,
130 int* buf_size, 125 int* buf_size,
131 int min_size) { 126 int min_size) {
132 writer_.OnWillRead(buf, buf_size, min_size); 127 writer_.OnWillRead(buf, buf_size, min_size);
133 return true; 128 return true;
134 } 129 }
135 130
136 bool NavigationResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { 131 bool NavigationResourceHandler::OnReadCompleted(int bytes_read, bool* defer) {
137 writer_.OnReadCompleted(bytes_read, defer); 132 writer_.OnReadCompleted(bytes_read, defer);
138 return true; 133 return true;
(...skipping 24 matching lines...) Expand all
163 NOTREACHED(); 158 NOTREACHED();
164 } 159 }
165 160
166 void NavigationResourceHandler::DetachFromCore() { 161 void NavigationResourceHandler::DetachFromCore() {
167 DCHECK(core_); 162 DCHECK(core_);
168 core_->set_resource_handler(nullptr); 163 core_->set_resource_handler(nullptr);
169 core_ = nullptr; 164 core_ = nullptr;
170 } 165 }
171 166
172 } // namespace content 167 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/navigation_resource_handler.h ('k') | content/browser/loader/resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698