| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/process.h" | 8 #include "base/process.h" |
| 9 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 9 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
| 10 #include "chrome/browser/renderer_host/resource_handler.h" | 10 #include "chrome/browser/renderer_host/resource_handler.h" |
| 11 | 11 |
| 12 class base::SharedMemory; | 12 namespace base { |
| 13 class SharedMemory; |
| 14 } |
| 13 | 15 |
| 14 // Used to complete an asynchronous resource request in response to resource | 16 // Used to complete an asynchronous resource request in response to resource |
| 15 // load events from the resource dispatcher host. | 17 // load events from the resource dispatcher host. |
| 16 class AsyncResourceHandler : public ResourceHandler { | 18 class AsyncResourceHandler : public ResourceHandler { |
| 17 public: | 19 public: |
| 18 AsyncResourceHandler(ResourceDispatcherHost::Receiver* receiver, | 20 AsyncResourceHandler(ResourceDispatcherHost::Receiver* receiver, |
| 19 int render_process_host_id, | 21 int render_process_host_id, |
| 20 int routing_id, | 22 int routing_id, |
| 21 base::ProcessHandle render_process, | 23 base::ProcessHandle render_process, |
| 22 const GURL& url, | 24 const GURL& url, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 42 ResourceDispatcherHost::Receiver* receiver_; | 44 ResourceDispatcherHost::Receiver* receiver_; |
| 43 int render_process_host_id_; | 45 int render_process_host_id_; |
| 44 int routing_id_; | 46 int routing_id_; |
| 45 base::ProcessHandle render_process_; | 47 base::ProcessHandle render_process_; |
| 46 ResourceDispatcherHost* rdh_; | 48 ResourceDispatcherHost* rdh_; |
| 47 | 49 |
| 48 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); | 50 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); |
| 49 }; | 51 }; |
| 50 | 52 |
| 51 #endif // CHROME_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ | 53 #endif // CHROME_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ |
| OLD | NEW |