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

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

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 14 matching lines...) Expand all
25 public: 25 public:
26 NaClProcessHost(ResourceDispatcherHost *resource_dispatcher_host, 26 NaClProcessHost(ResourceDispatcherHost *resource_dispatcher_host,
27 const std::wstring& url); 27 const std::wstring& url);
28 ~NaClProcessHost(); 28 ~NaClProcessHost();
29 29
30 // Initialize the new NaCl process, returning true on success. 30 // Initialize the new NaCl process, returning true on success.
31 bool Launch(RenderMessageFilter* render_message_filter, 31 bool Launch(RenderMessageFilter* render_message_filter,
32 int socket_count, 32 int socket_count,
33 IPC::Message* reply_msg); 33 IPC::Message* reply_msg);
34 34
35 virtual void OnMessageReceived(const IPC::Message& msg); 35 virtual bool OnMessageReceived(const IPC::Message& msg);
36 36
37 void OnProcessLaunchedByBroker(base::ProcessHandle handle); 37 void OnProcessLaunchedByBroker(base::ProcessHandle handle);
38 38
39 protected: 39 protected:
40 virtual base::TerminationStatus GetChildTerminationStatus(int* exit_code); 40 virtual base::TerminationStatus GetChildTerminationStatus(int* exit_code);
41 virtual void OnChildDied(); 41 virtual void OnChildDied();
42 42
43 private: 43 private:
44 bool LaunchSelLdr(); 44 bool LaunchSelLdr();
45 45
(...skipping 22 matching lines...) Expand all
68 std::vector<nacl::Handle> sockets_for_renderer_; 68 std::vector<nacl::Handle> sockets_for_renderer_;
69 std::vector<nacl::Handle> sockets_for_sel_ldr_; 69 std::vector<nacl::Handle> sockets_for_sel_ldr_;
70 70
71 // Windows platform flag 71 // Windows platform flag
72 bool running_on_wow64_; 72 bool running_on_wow64_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); 74 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost);
75 }; 75 };
76 76
77 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ 77 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/nacl_broker_host_win.cc ('k') | chrome/browser/nacl_host/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698