Index: chrome/browser/renderer_host/sync_resource_handler.h |
=================================================================== |
--- chrome/browser/renderer_host/sync_resource_handler.h (revision 8565) |
+++ chrome/browser/renderer_host/sync_resource_handler.h (working copy) |
@@ -7,6 +7,7 @@ |
#include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
#include "chrome/browser/renderer_host/resource_handler.h" |
+#include "net/base/io_buffer.h" |
// Used to complete a synchronous resource request in response to resource load |
// events from the resource dispatcher host. |
@@ -18,13 +19,14 @@ |
bool OnRequestRedirected(int request_id, const GURL& new_url); |
bool OnResponseStarted(int request_id, ResourceResponse* response); |
- bool OnWillRead(int request_id, char** buf, int* buf_size, int min_size); |
+ bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size, |
+ int min_size); |
bool OnReadCompleted(int request_id, int* bytes_read); |
bool OnResponseCompleted(int request_id, const URLRequestStatus& status); |
private: |
enum { kReadBufSize = 3840 }; |
- char read_buffer_[kReadBufSize]; |
+ scoped_refptr<net::IOBuffer> read_buffer_; |
ViewHostMsg_SyncLoad_Result result_; |
ResourceDispatcherHost::Receiver* receiver_; |