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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 #elif defined(OS_LINUX) | 72 #elif defined(OS_LINUX) |
73 bool LaunchNaClGdb(base::ProcessId pid); | 73 bool LaunchNaClGdb(base::ProcessId pid); |
74 void OnNaClGdbAttached(); | 74 void OnNaClGdbAttached(); |
75 #endif | 75 #endif |
76 // Get path to manifest on local disk if possible. | 76 // Get path to manifest on local disk if possible. |
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; | |
83 virtual void OnProcessLaunched() OVERRIDE; | 82 virtual void OnProcessLaunched() OVERRIDE; |
84 | 83 |
85 void OnResourcesReady(); | 84 void OnResourcesReady(); |
86 | 85 |
87 // Sends the reply message to the renderer who is waiting for the plugin | 86 // Sends the reply message to the renderer who is waiting for the plugin |
88 // to load. Returns true on success. | 87 // to load. Returns true on success. |
89 bool ReplyToRenderer(); | 88 bool ReplyToRenderer(); |
90 | 89 |
91 // Sends the message to the NaCl process to load the plugin. Returns true | 90 // Sends the message to the NaCl process to load the plugin. Returns true |
92 // on success. | 91 // on success. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 base::WeakPtrFactory<NaClProcessHost> weak_factory_; | 146 base::WeakPtrFactory<NaClProcessHost> weak_factory_; |
148 | 147 |
149 scoped_ptr<content::BrowserChildProcessHost> process_; | 148 scoped_ptr<content::BrowserChildProcessHost> process_; |
150 | 149 |
151 bool enable_exception_handling_; | 150 bool enable_exception_handling_; |
152 | 151 |
153 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); | 152 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); |
154 }; | 153 }; |
155 | 154 |
156 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ | 155 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ |
OLD | NEW |