OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 COMPONENTS_NACL_BROWSER_NACL_BROKER_HOST_WIN_H_ |
6 #define CHROME_BROWSER_NACL_HOST_NACL_BROKER_HOST_WIN_H_ | 6 #define COMPONENTS_NACL_BROWSER_NACL_BROKER_HOST_WIN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/process/process.h" | 12 #include "base/process/process.h" |
13 #include "content/public/browser/browser_child_process_host_delegate.h" | 13 #include "content/public/browser/browser_child_process_host_delegate.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 class BrowserChildProcessHost; | 16 class BrowserChildProcessHost; |
17 } | 17 } |
18 | 18 |
| 19 namespace nacl { |
| 20 |
19 class NaClBrokerHost : public content::BrowserChildProcessHostDelegate { | 21 class NaClBrokerHost : public content::BrowserChildProcessHostDelegate { |
20 public: | 22 public: |
21 NaClBrokerHost(); | 23 NaClBrokerHost(); |
22 ~NaClBrokerHost(); | 24 ~NaClBrokerHost(); |
23 | 25 |
24 // This function starts the broker process. It needs to be called | 26 // This function starts the broker process. It needs to be called |
25 // before loaders can be launched. | 27 // before loaders can be launched. |
26 bool Init(); | 28 bool Init(); |
27 | 29 |
28 // Send a message to the broker process, causing it to launch | 30 // Send a message to the broker process, causing it to launch |
(...skipping 21 matching lines...) Expand all Loading... |
50 | 52 |
51 // BrowserChildProcessHostDelegate implementation: | 53 // BrowserChildProcessHostDelegate implementation: |
52 virtual bool OnMessageReceived(const IPC::Message& msg); | 54 virtual bool OnMessageReceived(const IPC::Message& msg); |
53 | 55 |
54 scoped_ptr<content::BrowserChildProcessHost> process_; | 56 scoped_ptr<content::BrowserChildProcessHost> process_; |
55 bool is_terminating_; | 57 bool is_terminating_; |
56 | 58 |
57 DISALLOW_COPY_AND_ASSIGN(NaClBrokerHost); | 59 DISALLOW_COPY_AND_ASSIGN(NaClBrokerHost); |
58 }; | 60 }; |
59 | 61 |
60 #endif // CHROME_BROWSER_NACL_HOST_NACL_BROKER_HOST_WIN_H_ | 62 } // namespace nacl |
| 63 |
| 64 #endif // COMPONENTS_NACL_BROWSER_NACL_BROKER_HOST_WIN_H_ |
OLD | NEW |