| 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 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |