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

Side by Side Diff: content/browser/loader/stream_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/stream_resource_handler.h" 5 #include "content/browser/loader/stream_resource_handler.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 bool StreamResourceHandler::OnResponseStarted(ResourceResponse* resp, 33 bool StreamResourceHandler::OnResponseStarted(ResourceResponse* resp,
34 bool* defer) { 34 bool* defer) {
35 return true; 35 return true;
36 } 36 }
37 37
38 bool StreamResourceHandler::OnWillStart(const GURL& url, bool* defer) { 38 bool StreamResourceHandler::OnWillStart(const GURL& url, bool* defer) {
39 return true; 39 return true;
40 } 40 }
41 41
42 bool StreamResourceHandler::OnBeforeNetworkStart(const GURL& url, bool* defer) {
43 return true;
44 }
45
46 bool StreamResourceHandler::OnWillRead(scoped_refptr<net::IOBuffer>* buf, 42 bool StreamResourceHandler::OnWillRead(scoped_refptr<net::IOBuffer>* buf,
47 int* buf_size, 43 int* buf_size,
48 int min_size) { 44 int min_size) {
49 writer_.OnWillRead(buf, buf_size, min_size); 45 writer_.OnWillRead(buf, buf_size, min_size);
50 return true; 46 return true;
51 } 47 }
52 48
53 bool StreamResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { 49 bool StreamResourceHandler::OnReadCompleted(int bytes_read, bool* defer) {
54 writer_.OnReadCompleted(bytes_read, defer); 50 writer_.OnReadCompleted(bytes_read, defer);
55 return true; 51 return true;
56 } 52 }
57 53
58 void StreamResourceHandler::OnResponseCompleted( 54 void StreamResourceHandler::OnResponseCompleted(
59 const net::URLRequestStatus& status, 55 const net::URLRequestStatus& status,
60 const std::string& sec_info, 56 const std::string& sec_info,
61 bool* defer) { 57 bool* defer) {
62 writer_.Finalize(); 58 writer_.Finalize();
63 } 59 }
64 60
65 void StreamResourceHandler::OnDataDownloaded(int bytes_downloaded) { 61 void StreamResourceHandler::OnDataDownloaded(int bytes_downloaded) {
66 NOTREACHED(); 62 NOTREACHED();
67 } 63 }
68 64
69 } // namespace content 65 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/stream_resource_handler.h ('k') | content/browser/loader/sync_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698