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

Side by Side Diff: chrome/browser/nacl_host/nacl_process_host.h

Issue 10020002: Pass the nacl start parameters as a struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
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 CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_
6 #define CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 FilePath GetManifestPath(); 77 FilePath GetManifestPath();
78 bool LaunchSelLdr(); 78 bool LaunchSelLdr();
79 79
80 // BrowserChildProcessHostDelegate implementation: 80 // BrowserChildProcessHostDelegate implementation:
81 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 81 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
82 virtual void OnProcessCrashed(int exit_code) OVERRIDE; 82 virtual void OnProcessCrashed(int exit_code) OVERRIDE;
83 virtual void OnProcessLaunched() OVERRIDE; 83 virtual void OnProcessLaunched() OVERRIDE;
84 84
85 void IrtReady(); 85 void IrtReady();
86 86
87 // Fills in the startup parameters to the given struct, returning true on
88 // success.
89 bool MakeStartParams(nacl::NaClStartParams* params);
90
87 // Sends the start command with file handles to an opened NaCl process. 91 // Sends the start command with file handles to an opened NaCl process.
88 // Returns false on failure. 92 // Returns false on failure.
89 bool SendStart(); 93 bool SendStart();
90 94
91 // Does post-process-launching tasks for starting the NaCl process once 95 // Does post-process-launching tasks for starting the NaCl process once
92 // we have a connection. 96 // we have a connection.
93 // 97 //
94 // Returns false on failure. 98 // Returns false on failure.
95 bool StartWithLaunchedProcess(); 99 bool StartWithLaunchedProcess();
96 100
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 base::WeakPtrFactory<NaClProcessHost> weak_factory_; 136 base::WeakPtrFactory<NaClProcessHost> weak_factory_;
133 137
134 scoped_ptr<content::BrowserChildProcessHost> process_; 138 scoped_ptr<content::BrowserChildProcessHost> process_;
135 139
136 bool enable_exception_handling_; 140 bool enable_exception_handling_;
137 141
138 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); 142 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost);
139 }; 143 };
140 144
141 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ 145 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/nacl_host/nacl_process_host.cc » ('j') | chrome/browser/nacl_host/nacl_process_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698