Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: components/nacl/browser/nacl_process_host.h

Issue 1640123005: Revert of Have each SandboxedProcessLauncherDelegate maintain a zygote. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/webui/about_ui.cc ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 base::File socket_for_sel_ldr_; 264 base::File socket_for_sel_ldr_;
270 265
271 base::WeakPtrFactory<NaClProcessHost> weak_factory_; 266 base::WeakPtrFactory<NaClProcessHost> weak_factory_;
272 267
273 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); 268 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost);
274 }; 269 };
275 270
276 } // namespace nacl 271 } // namespace nacl
277 272
278 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ 273 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/about_ui.cc ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698