| OLD | NEW |
| 1 // Copyright (c) 2011 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_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 40 // instance. | 40 // instance. |
| 41 static void TerminateAll(); | 41 static void TerminateAll(); |
| 42 | 42 |
| 43 // BrowserChildProcessHostImpl implementation: | 43 // BrowserChildProcessHostImpl implementation: |
| 44 virtual bool Send(IPC::Message* message) OVERRIDE; | 44 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 45 virtual void Launch( | 45 virtual void Launch( |
| 46 #if defined(OS_WIN) | 46 #if defined(OS_WIN) |
| 47 const FilePath& exposed_dir, | 47 const FilePath& exposed_dir, |
| 48 #elif defined(OS_POSIX) | 48 #elif defined(OS_POSIX) |
| 49 bool use_zygote, | 49 bool use_zygote, |
| 50 const base::environment_vector& environ, | 50 const base::EnvironmentVector& environ, |
| 51 #endif | 51 #endif |
| 52 CommandLine* cmd_line) OVERRIDE; | 52 CommandLine* cmd_line) OVERRIDE; |
| 53 virtual const content::ChildProcessData& GetData() const OVERRIDE; | 53 virtual const content::ChildProcessData& GetData() const OVERRIDE; |
| 54 virtual content::ChildProcessHost* GetHost() const OVERRIDE; | 54 virtual content::ChildProcessHost* GetHost() const OVERRIDE; |
| 55 virtual base::TerminationStatus GetTerminationStatus(int* exit_code) OVERRIDE; | 55 virtual base::TerminationStatus GetTerminationStatus(int* exit_code) OVERRIDE; |
| 56 virtual void SetName(const string16& name) OVERRIDE; | 56 virtual void SetName(const string16& name) OVERRIDE; |
| 57 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; | 57 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; |
| 58 | 58 |
| 59 bool disconnect_was_alive() const { return disconnect_was_alive_; } | 59 bool disconnect_was_alive() const { return disconnect_was_alive_; } |
| 60 | 60 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 scoped_ptr<ChildProcessLauncher> child_process_; | 104 scoped_ptr<ChildProcessLauncher> child_process_; |
| 105 #if defined(OS_WIN) | 105 #if defined(OS_WIN) |
| 106 base::WaitableEventWatcher child_watcher_; | 106 base::WaitableEventWatcher child_watcher_; |
| 107 #else | 107 #else |
| 108 base::WeakPtrFactory<BrowserChildProcessHostImpl> task_factory_; | 108 base::WeakPtrFactory<BrowserChildProcessHostImpl> task_factory_; |
| 109 #endif | 109 #endif |
| 110 bool disconnect_was_alive_; | 110 bool disconnect_was_alive_; |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 113 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |