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_LOADER_SYNC_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_ |
6 #define CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "content/browser/loader/resource_handler.h" | 12 #include "content/browser/loader/resource_handler.h" |
11 #include "content/public/common/resource_response.h" | 13 #include "content/public/common/resource_response.h" |
12 | 14 |
13 namespace IPC { | 15 namespace IPC { |
14 class Message; | 16 class Message; |
15 } | 17 } |
16 | 18 |
17 namespace net { | 19 namespace net { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void OnDataDownloaded(int bytes_downloaded) override; | 51 void OnDataDownloaded(int bytes_downloaded) override; |
50 | 52 |
51 private: | 53 private: |
52 enum { kReadBufSize = 3840 }; | 54 enum { kReadBufSize = 3840 }; |
53 | 55 |
54 scoped_refptr<net::IOBuffer> read_buffer_; | 56 scoped_refptr<net::IOBuffer> read_buffer_; |
55 | 57 |
56 SyncLoadResult result_; | 58 SyncLoadResult result_; |
57 IPC::Message* result_message_; | 59 IPC::Message* result_message_; |
58 ResourceDispatcherHostImpl* rdh_; | 60 ResourceDispatcherHostImpl* rdh_; |
59 int64 total_transfer_size_; | 61 int64_t total_transfer_size_; |
60 }; | 62 }; |
61 | 63 |
62 } // namespace content | 64 } // namespace content |
63 | 65 |
64 #endif // CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_ | 66 #endif // CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_ |
OLD | NEW |