OLD | NEW |
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/sync_resource_handler.h" | 5 #include "content/browser/loader/sync_resource_handler.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/browser/devtools/devtools_netlog_observer.h" | 8 #include "content/browser/devtools/devtools_netlog_observer.h" |
9 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 9 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
10 #include "content/browser/loader/resource_message_filter.h" | 10 #include "content/browser/loader/resource_message_filter.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 result_.devtools_info = response->head.devtools_info; | 94 result_.devtools_info = response->head.devtools_info; |
95 return true; | 95 return true; |
96 } | 96 } |
97 | 97 |
98 bool SyncResourceHandler::OnWillStart(int request_id, | 98 bool SyncResourceHandler::OnWillStart(int request_id, |
99 const GURL& url, | 99 const GURL& url, |
100 bool* defer) { | 100 bool* defer) { |
101 return true; | 101 return true; |
102 } | 102 } |
103 | 103 |
| 104 bool SyncResourceHandler::OnBeforeNetworkStart(int request_id, |
| 105 const GURL& url, |
| 106 bool* defer) { |
| 107 return true; |
| 108 } |
| 109 |
104 bool SyncResourceHandler::OnWillRead(int request_id, | 110 bool SyncResourceHandler::OnWillRead(int request_id, |
105 scoped_refptr<net::IOBuffer>* buf, | 111 scoped_refptr<net::IOBuffer>* buf, |
106 int* buf_size, | 112 int* buf_size, |
107 int min_size) { | 113 int min_size) { |
108 DCHECK(min_size == -1); | 114 DCHECK(min_size == -1); |
109 *buf = read_buffer_.get(); | 115 *buf = read_buffer_.get(); |
110 *buf_size = kReadBufSize; | 116 *buf_size = kReadBufSize; |
111 return true; | 117 return true; |
112 } | 118 } |
113 | 119 |
(...skipping 26 matching lines...) Expand all Loading... |
140 } | 146 } |
141 | 147 |
142 void SyncResourceHandler::OnDataDownloaded( | 148 void SyncResourceHandler::OnDataDownloaded( |
143 int request_id, | 149 int request_id, |
144 int bytes_downloaded) { | 150 int bytes_downloaded) { |
145 // Sync requests don't involve ResourceMsg_DataDownloaded messages | 151 // Sync requests don't involve ResourceMsg_DataDownloaded messages |
146 // being sent back to renderers as progress is made. | 152 // being sent back to renderers as progress is made. |
147 } | 153 } |
148 | 154 |
149 } // namespace content | 155 } // namespace content |
OLD | NEW |