OLD | NEW |
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 29 matching lines...) Loading... |
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 |
46 void SendStartMessage(); | 46 void SendStartMessage(); |
47 | 47 |
48 virtual void OnProcessLaunched(); | 48 virtual void OnProcessLaunched(); |
49 | 49 |
50 // ResourceDispatcherHost::Receiver implementation: | |
51 virtual URLRequestContext* GetRequestContext( | |
52 uint32 request_id, | |
53 const ViewHostMsg_Resource_Request& request_data); | |
54 | |
55 virtual bool CanShutdown(); | 50 virtual bool CanShutdown(); |
56 | 51 |
57 #if defined(OS_WIN) | 52 #if defined(OS_WIN) |
58 // Check whether the browser process is running on WOW64 - Windows only | 53 // Check whether the browser process is running on WOW64 - Windows only |
59 void CheckIsWow64(); | 54 void CheckIsWow64(); |
60 #endif | 55 #endif |
61 | 56 |
62 private: | 57 private: |
63 ResourceDispatcherHost* resource_dispatcher_host_; | 58 ResourceDispatcherHost* resource_dispatcher_host_; |
64 | 59 |
65 // The RenderMessageFilter that requested this NaCl process. We use this | 60 // The RenderMessageFilter that requested this NaCl process. We use this |
66 // for sending the reply once the process has started. | 61 // for sending the reply once the process has started. |
67 scoped_refptr<RenderMessageFilter> render_message_filter_; | 62 scoped_refptr<RenderMessageFilter> render_message_filter_; |
68 | 63 |
69 // The reply message to send. | 64 // The reply message to send. |
70 IPC::Message* reply_msg_; | 65 IPC::Message* reply_msg_; |
71 | 66 |
72 // Socket pairs for the NaCl process and renderer. | 67 // Socket pairs for the NaCl process and renderer. |
73 std::vector<nacl::Handle> sockets_for_renderer_; | 68 std::vector<nacl::Handle> sockets_for_renderer_; |
74 std::vector<nacl::Handle> sockets_for_sel_ldr_; | 69 std::vector<nacl::Handle> sockets_for_sel_ldr_; |
75 | 70 |
76 // Windows platform flag | 71 // Windows platform flag |
77 bool running_on_wow64_; | 72 bool running_on_wow64_; |
78 | 73 |
79 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); | 74 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); |
80 }; | 75 }; |
81 | 76 |
82 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ | 77 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ |
OLD | NEW |