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