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

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
« no previous file with comments | « no previous file | chrome/browser/nacl_host/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 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 // Sends the start command with file handles to an opened NaCl process. 87 // Sends the reply message to the renderer who is waiting for the plugin
88 // Returns false on failure. 88 // to load. Returns true on success.
89 bool ReplyToRenderer();
90
91 // Sends the message to the NaCl process to load the plugin. Returns true
92 // on success.
93 bool StartNaClExecution();
94
95 // Called once all initialization is complete and the NaCl process is
96 // ready to go. Returns true on success.
89 bool SendStart(); 97 bool SendStart();
90 98
91 // Does post-process-launching tasks for starting the NaCl process once 99 // Does post-process-launching tasks for starting the NaCl process once
92 // we have a connection. 100 // we have a connection.
93 // 101 //
94 // Returns false on failure. 102 // Returns false on failure.
95 bool StartWithLaunchedProcess(); 103 bool StartWithLaunchedProcess();
96 104
97 // Message handlers for validation caching. 105 // Message handlers for validation caching.
98 void OnQueryKnownToValidate(const std::string& signature, bool* result); 106 void OnQueryKnownToValidate(const std::string& signature, bool* result);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 base::WeakPtrFactory<NaClProcessHost> weak_factory_; 140 base::WeakPtrFactory<NaClProcessHost> weak_factory_;
133 141
134 scoped_ptr<content::BrowserChildProcessHost> process_; 142 scoped_ptr<content::BrowserChildProcessHost> process_;
135 143
136 bool enable_exception_handling_; 144 bool enable_exception_handling_;
137 145
138 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); 146 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost);
139 }; 147 };
140 148
141 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ 149 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698