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_ANDROID) && !defined(OS_MACOSX) |
| 97 // Launch the NaCl zygote early in the browser startup. |
| 98 static void EarlyZygoteLaunch(); |
| 99 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) |
| 100 |
96 // Specifies throttling time in milliseconds for PpapiHostMsg_Keepalive IPCs. | 101 // Specifies throttling time in milliseconds for PpapiHostMsg_Keepalive IPCs. |
97 static void SetPpapiKeepAliveThrottleForTesting(unsigned milliseconds); | 102 static void SetPpapiKeepAliveThrottleForTesting(unsigned milliseconds); |
98 | 103 |
99 // Initialize the new NaCl process. Result is returned by sending ipc | 104 // Initialize the new NaCl process. Result is returned by sending ipc |
100 // message reply_msg. | 105 // message reply_msg. |
101 void Launch(NaClHostMessageFilter* nacl_host_message_filter, | 106 void Launch(NaClHostMessageFilter* nacl_host_message_filter, |
102 IPC::Message* reply_msg, | 107 IPC::Message* reply_msg, |
103 const base::FilePath& manifest_path); | 108 const base::FilePath& manifest_path); |
104 | 109 |
105 void OnChannelConnected(int32_t peer_pid) override; | 110 void OnChannelConnected(int32_t peer_pid) override; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 base::File socket_for_sel_ldr_; | 269 base::File socket_for_sel_ldr_; |
265 | 270 |
266 base::WeakPtrFactory<NaClProcessHost> weak_factory_; | 271 base::WeakPtrFactory<NaClProcessHost> weak_factory_; |
267 | 272 |
268 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); | 273 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); |
269 }; | 274 }; |
270 | 275 |
271 } // namespace nacl | 276 } // namespace nacl |
272 | 277 |
273 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ | 278 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ |
OLD | NEW |