| 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 COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ | 5 #ifndef COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ |
| 6 #define COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ | 6 #define COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 bool off_the_record, | 86 bool off_the_record, |
| 87 NaClAppProcessType process_type, | 87 NaClAppProcessType process_type, |
| 88 const base::FilePath& profile_directory); | 88 const base::FilePath& profile_directory); |
| 89 ~NaClProcessHost() override; | 89 ~NaClProcessHost() override; |
| 90 | 90 |
| 91 void OnProcessCrashed(int exit_status) override; | 91 void OnProcessCrashed(int exit_status) override; |
| 92 | 92 |
| 93 // Do any minimal work that must be done at browser startup. | 93 // Do any minimal work that must be done at browser startup. |
| 94 static void EarlyStartup(); | 94 static void EarlyStartup(); |
| 95 | 95 |
| 96 #if defined(OS_POSIX) && !defined(OS_MACOSX) | |
| 97 // Launch the NaCl zygote early in the browser startup. | |
| 98 static void EarlyZygoteLaunch(); | |
| 99 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) | |
| 100 | |
| 101 // Specifies throttling time in milliseconds for PpapiHostMsg_Keepalive IPCs. | 96 // Specifies throttling time in milliseconds for PpapiHostMsg_Keepalive IPCs. |
| 102 static void SetPpapiKeepAliveThrottleForTesting(unsigned milliseconds); | 97 static void SetPpapiKeepAliveThrottleForTesting(unsigned milliseconds); |
| 103 | 98 |
| 104 // Initialize the new NaCl process. Result is returned by sending ipc | 99 // Initialize the new NaCl process. Result is returned by sending ipc |
| 105 // message reply_msg. | 100 // message reply_msg. |
| 106 void Launch(NaClHostMessageFilter* nacl_host_message_filter, | 101 void Launch(NaClHostMessageFilter* nacl_host_message_filter, |
| 107 IPC::Message* reply_msg, | 102 IPC::Message* reply_msg, |
| 108 const base::FilePath& manifest_path); | 103 const base::FilePath& manifest_path); |
| 109 | 104 |
| 110 void OnChannelConnected(int32_t peer_pid) override; | 105 void OnChannelConnected(int32_t peer_pid) override; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 base::SharedMemory crash_info_shmem_; | 253 base::SharedMemory crash_info_shmem_; |
| 259 | 254 |
| 260 base::WeakPtrFactory<NaClProcessHost> weak_factory_; | 255 base::WeakPtrFactory<NaClProcessHost> weak_factory_; |
| 261 | 256 |
| 262 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); | 257 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); |
| 263 }; | 258 }; |
| 264 | 259 |
| 265 } // namespace nacl | 260 } // namespace nacl |
| 266 | 261 |
| 267 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ | 262 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ |
| OLD | NEW |