| 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 ResourceResponse* response, | 45 ResourceResponse* response, |
| 46 bool* defer) OVERRIDE; | 46 bool* defer) OVERRIDE; |
| 47 virtual bool OnWillStart(int request_id, | 47 virtual bool OnWillStart(int request_id, |
| 48 const GURL& url, | 48 const GURL& url, |
| 49 bool* defer) OVERRIDE; | 49 bool* defer) OVERRIDE; |
| 50 virtual bool OnWillRead(int request_id, | 50 virtual bool OnWillRead(int request_id, |
| 51 net::IOBuffer** buf, | 51 net::IOBuffer** buf, |
| 52 int* buf_size, | 52 int* buf_size, |
| 53 int min_size) OVERRIDE; | 53 int min_size) OVERRIDE; |
| 54 virtual bool OnReadCompleted(int request_id, | 54 virtual bool OnReadCompleted(int request_id, |
| 55 int* bytes_read, | 55 int bytes_read, |
| 56 bool* defer) OVERRIDE; | 56 bool* defer) OVERRIDE; |
| 57 virtual bool OnResponseCompleted(int request_id, | 57 virtual bool OnResponseCompleted(int request_id, |
| 58 const net::URLRequestStatus& status, | 58 const net::URLRequestStatus& status, |
| 59 const std::string& security_info) OVERRIDE; | 59 const std::string& security_info) OVERRIDE; |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 enum { kReadBufSize = 3840 }; | 62 enum { kReadBufSize = 3840 }; |
| 63 | 63 |
| 64 scoped_refptr<net::IOBuffer> read_buffer_; | 64 scoped_refptr<net::IOBuffer> read_buffer_; |
| 65 | 65 |
| 66 SyncLoadResult result_; | 66 SyncLoadResult result_; |
| 67 scoped_refptr<ResourceMessageFilter> filter_; | 67 scoped_refptr<ResourceMessageFilter> filter_; |
| 68 net::URLRequest* request_; | 68 net::URLRequest* request_; |
| 69 IPC::Message* result_message_; | 69 IPC::Message* result_message_; |
| 70 ResourceDispatcherHostImpl* rdh_; | 70 ResourceDispatcherHostImpl* rdh_; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace content | 73 } // namespace content |
| 74 | 74 |
| 75 #endif // CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_ | 75 #endif // CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_ |
| OLD | NEW |