| 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_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/public/common/process_type.h" | 13 #include "content/public/common/process_type.h" |
| 14 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_sender.h" |
| 15 | 15 |
| 16 class CommandLine; | 16 class CommandLine; |
| 17 class FilePath; | 17 class FilePath; |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| 21 class BrowserChildProcessHostDelegate; | 21 class BrowserChildProcessHostDelegate; |
| 22 class ChildProcessHost; | 22 class ChildProcessHost; |
| 23 struct ChildProcessData; | 23 struct ChildProcessData; |
| 24 | 24 |
| 25 // This represents child processes of the browser process, i.e. plugins. They | 25 // This represents child processes of the browser process, i.e. plugins. They |
| 26 // will get terminated at browser shutdown. | 26 // will get terminated at browser shutdown. |
| 27 class CONTENT_EXPORT BrowserChildProcessHost : public IPC::Message::Sender { | 27 class CONTENT_EXPORT BrowserChildProcessHost : public IPC::Sender { |
| 28 public: | 28 public: |
| 29 // Used to create a child process host. The delegate must outlive this object. | 29 // Used to create a child process host. The delegate must outlive this object. |
| 30 static BrowserChildProcessHost* Create( | 30 static BrowserChildProcessHost* Create( |
| 31 ProcessType type, | 31 ProcessType type, |
| 32 BrowserChildProcessHostDelegate* delegate); | 32 BrowserChildProcessHostDelegate* delegate); |
| 33 | 33 |
| 34 virtual ~BrowserChildProcessHost() {} | 34 virtual ~BrowserChildProcessHost() {} |
| 35 | 35 |
| 36 // Derived classes call this to launch the child process asynchronously. | 36 // Derived classes call this to launch the child process asynchronously. |
| 37 virtual void Launch( | 37 virtual void Launch( |
| (...skipping 28 matching lines...) Expand all Loading... |
| 66 | 66 |
| 67 #if defined(OS_MACOSX) | 67 #if defined(OS_MACOSX) |
| 68 // Returns a PortProvider used to get process metrics for child processes. | 68 // Returns a PortProvider used to get process metrics for child processes. |
| 69 static base::ProcessMetrics::PortProvider* GetPortProvider(); | 69 static base::ProcessMetrics::PortProvider* GetPortProvider(); |
| 70 #endif | 70 #endif |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 }; // namespace content | 73 }; // namespace content |
| 74 | 74 |
| 75 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ | 75 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ |
| OLD | NEW |