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

Unified Diff: components/nacl/browser/nacl_process_host.h

Issue 572973002: NaCl: Simpler validation for main nexe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/browser/nacl_process_host.h
diff --git a/components/nacl/browser/nacl_process_host.h b/components/nacl/browser/nacl_process_host.h
index eb138b61809f2f383ad2bc3c0d0c7efdb0a25cf1..6db28c0db5791d1db800525269f162238a6706f1 100644
--- a/components/nacl/browser/nacl_process_host.h
+++ b/components/nacl/browser/nacl_process_host.h
@@ -144,6 +144,11 @@ class NaClProcessHost : public content::BrowserChildProcessHostDelegate {
// on success.
bool StartNaClExecution();
+ void StartNaClFileResolved(
+ NaClStartParams params,
+ const base::FilePath& file_path,
+ base::File nexe_file);
+
// Does post-process-launching tasks for starting the NaCl process once
// we have a connection.
//
@@ -153,16 +158,11 @@ class NaClProcessHost : public content::BrowserChildProcessHostDelegate {
// Message handlers for validation caching.
void OnQueryKnownToValidate(const std::string& signature, bool* result);
void OnSetKnownToValidate(const std::string& signature);
- void OnResolveFileToken(uint64 file_token_lo, uint64 file_token_hi,
- IPC::Message* reply_msg);
- void OnResolveFileTokenAsync(uint64 file_token_lo, uint64 file_token_hi);
- void FileResolved(const base::FilePath& file_path,
- IPC::Message* reply_msg,
+ void OnResolveFileToken(uint64 file_token_lo, uint64 file_token_hi);
+ void FileResolved(uint64_t file_token_lo,
+ uint64_t file_token_hi,
+ const base::FilePath& file_path,
base::File file);
- void FileResolvedAsync(uint64_t file_token_lo,
- uint64_t file_token_hi,
- const base::FilePath& file_path,
- base::File file);
#if defined(OS_WIN)
// Message handler for Windows hardware exception handling.
void OnAttachDebugExceptionHandler(const std::string& info,
« no previous file with comments | « no previous file | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698