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_BROKER_HOST_WIN_H_ | 5 #ifndef CHROME_BROWSER_NACL_HOST_NACL_BROKER_HOST_WIN_H_ |
6 #define CHROME_BROWSER_NACL_HOST_NACL_BROKER_HOST_WIN_H_ | 6 #define CHROME_BROWSER_NACL_HOST_NACL_BROKER_HOST_WIN_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/process.h" | 9 #include "base/process.h" |
10 #include "chrome/browser/child_process_host.h" | 10 #include "chrome/browser/browser_child_process_host.h" |
11 #include "ipc/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
12 | 12 |
13 class NaClBrokerHost : public ChildProcessHost { | 13 class NaClBrokerHost : public BrowserChildProcessHost { |
14 public: | 14 public: |
15 explicit NaClBrokerHost(ResourceDispatcherHost* resource_dispatcher_host); | 15 explicit NaClBrokerHost(ResourceDispatcherHost* resource_dispatcher_host); |
16 ~NaClBrokerHost(); | 16 ~NaClBrokerHost(); |
17 | 17 |
18 // This function starts the broker process. It needs to be called | 18 // This function starts the broker process. It needs to be called |
19 // before loaders can be launched. | 19 // before loaders can be launched. |
20 bool Init(); | 20 bool Init(); |
21 | 21 |
22 // Send a message to the broker process, causing it to launch | 22 // Send a message to the broker process, causing it to launch |
23 // a Native Client loader process. | 23 // a Native Client loader process. |
(...skipping 16 matching lines...) Expand all Loading... |
40 | 40 |
41 // IPC::Channel::Listener | 41 // IPC::Channel::Listener |
42 virtual void OnMessageReceived(const IPC::Message& msg); | 42 virtual void OnMessageReceived(const IPC::Message& msg); |
43 | 43 |
44 bool stopping_; | 44 bool stopping_; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(NaClBrokerHost); | 46 DISALLOW_COPY_AND_ASSIGN(NaClBrokerHost); |
47 }; | 47 }; |
48 | 48 |
49 #endif // CHROME_BROWSER_NACL_HOST_NACL_BROKER_HOST_WIN_H_ | 49 #endif // CHROME_BROWSER_NACL_HOST_NACL_BROKER_HOST_WIN_H_ |
OLD | NEW |