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

Side by Side Diff: headless/public/util/generic_url_request_job.cc

Issue 2746093002: Remove obsolete methods from GenericURLRequestJob::Delegate (Closed)
Patch Set: Created 3 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
« no previous file with comments | « headless/public/util/generic_url_request_job.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "headless/public/util/generic_url_request_job.h" 5 #include "headless/public/util/generic_url_request_job.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <algorithm> 8 #include <algorithm>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 return false; 196 return false;
197 return response_headers_->GetCharset(charset); 197 return response_headers_->GetCharset(charset);
198 } 198 }
199 199
200 void GenericURLRequestJob::GetLoadTimingInfo( 200 void GenericURLRequestJob::GetLoadTimingInfo(
201 net::LoadTimingInfo* load_timing_info) const { 201 net::LoadTimingInfo* load_timing_info) const {
202 // TODO(alexclarke): Investigate setting the other members too where possible. 202 // TODO(alexclarke): Investigate setting the other members too where possible.
203 load_timing_info->receive_headers_end = response_time_; 203 load_timing_info->receive_headers_end = response_time_;
204 } 204 }
205 205
206 bool GenericURLRequestJob::Delegate::BlockOrRewriteRequest(
207 const GURL& url,
208 const std::string& devtools_id,
209 const std::string& method,
210 const std::string& referrer,
211 RewriteCallback callback) {
212 return BlockOrRewriteRequest(url, method, referrer, callback);
213 }
214
215 bool GenericURLRequestJob::Delegate::BlockOrRewriteRequest(
216 const GURL& url,
217 const std::string& method,
218 const std::string& referrer,
219 RewriteCallback callback) {
220 return false;
221 }
222
223 const GenericURLRequestJob::HttpResponse*
224 GenericURLRequestJob::Delegate::MaybeMatchResource(
225 const GURL& url,
226 const std::string& devtools_id,
227 const std::string& method,
228 const net::HttpRequestHeaders& request_headers) {
229 return MaybeMatchResource(url, method, request_headers);
230 }
231
232 const GenericURLRequestJob::HttpResponse*
233 GenericURLRequestJob::Delegate::MaybeMatchResource(
234 const GURL& url,
235 const std::string& method,
236 const net::HttpRequestHeaders& request_headers) {
237 return nullptr;
238 }
239
240 void GenericURLRequestJob::Delegate::OnResourceLoadComplete(
241 const GURL& final_url,
242 const std::string& devtools_id,
243 const std::string& mime_type,
244 int http_response_code) {
245 OnResourceLoadComplete(final_url, mime_type, http_response_code);
246 }
247
248 } // namespace headless 206 } // namespace headless
OLDNEW
« no previous file with comments | « headless/public/util/generic_url_request_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698