| 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> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 12 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| 13 #include "content/browser/loader/resource_handler.h" | 13 #include "content/browser/loader/resource_handler.h" |
| 14 #include "content/public/common/resource_response.h" | 14 #include "content/public/common/resource_response.h" |
| 15 | 15 |
| 16 namespace IPC { | |
| 17 class Message; | |
| 18 } | |
| 19 | |
| 20 namespace net { | 16 namespace net { |
| 21 class IOBuffer; | 17 class IOBuffer; |
| 22 class URLRequest; | 18 class URLRequest; |
| 23 } | 19 } |
| 24 | 20 |
| 25 namespace content { | 21 namespace content { |
| 26 | 22 |
| 27 // Used to complete a synchronous resource request in response to resource load | 23 // Used to complete a synchronous resource request in response to resource load |
| 28 // events from the resource dispatcher host. | 24 // events from the resource dispatcher host. |
| 29 class SyncResourceHandler : public ResourceHandler { | 25 class SyncResourceHandler : public ResourceHandler { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 56 | 52 |
| 57 SyncLoadResult result_; | 53 SyncLoadResult result_; |
| 58 SyncLoadResultCallback result_handler_; | 54 SyncLoadResultCallback result_handler_; |
| 59 ResourceDispatcherHostImpl* rdh_; | 55 ResourceDispatcherHostImpl* rdh_; |
| 60 int64_t total_transfer_size_; | 56 int64_t total_transfer_size_; |
| 61 }; | 57 }; |
| 62 | 58 |
| 63 } // namespace content | 59 } // namespace content |
| 64 | 60 |
| 65 #endif // CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_ | 61 #endif // CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_ |
| OLD | NEW |