| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_CHILD_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ |
| 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 | 10 |
| 11 #include "chrome/common/child_process_host.h" | |
| 12 #include "chrome/common/child_process_info.h" | |
| 13 #include "content/browser/child_process_launcher.h" | 11 #include "content/browser/child_process_launcher.h" |
| 14 #include "content/browser/renderer_host/resource_message_filter.h" | 12 #include "content/browser/renderer_host/resource_message_filter.h" |
| 13 #include "content/common/child_process_host.h" |
| 14 #include "content/common/child_process_info.h" |
| 15 | 15 |
| 16 class ResourceDispatcherHost; | 16 class ResourceDispatcherHost; |
| 17 | 17 |
| 18 // Plugins/workers and other child processes that live on the IO thread should | 18 // Plugins/workers and other child processes that live on the IO thread should |
| 19 // derive from this class. | 19 // derive from this class. |
| 20 // | 20 // |
| 21 // [Browser]RenderProcessHost is the main exception that doesn't derive from | 21 // [Browser]RenderProcessHost is the main exception that doesn't derive from |
| 22 // this class. That project lives on the UI thread. | 22 // this class. That project lives on the UI thread. |
| 23 class BrowserChildProcessHost : public ChildProcessHost, | 23 class BrowserChildProcessHost : public ChildProcessHost, |
| 24 public ChildProcessInfo, | 24 public ChildProcessInfo, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 private: | 134 private: |
| 135 BrowserChildProcessHost* host_; | 135 BrowserChildProcessHost* host_; |
| 136 }; | 136 }; |
| 137 ClientHook client_; | 137 ClientHook client_; |
| 138 // May be NULL if this current process has no resource dispatcher host. | 138 // May be NULL if this current process has no resource dispatcher host. |
| 139 ResourceDispatcherHost* resource_dispatcher_host_; | 139 ResourceDispatcherHost* resource_dispatcher_host_; |
| 140 scoped_ptr<ChildProcessLauncher> child_process_; | 140 scoped_ptr<ChildProcessLauncher> child_process_; |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ | 143 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ |
| OLD | NEW |