OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/file_util_proxy.h" | 12 #include "base/file_util_proxy.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_callback_factory.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "chrome/common/nacl_types.h" | 15 #include "chrome/common/nacl_types.h" |
16 #include "content/browser/browser_child_process_host.h" | 16 #include "content/browser/browser_child_process_host.h" |
17 | 17 |
18 class ChromeRenderMessageFilter; | 18 class ChromeRenderMessageFilter; |
19 | 19 |
20 // Represents the browser side of the browser <--> NaCl communication | 20 // Represents the browser side of the browser <--> NaCl communication |
21 // channel. There will be one NaClProcessHost per NaCl process | 21 // channel. There will be one NaClProcessHost per NaCl process |
22 // The browser is responsible for starting the NaCl process | 22 // The browser is responsible for starting the NaCl process |
23 // when requested by the renderer. | 23 // when requested by the renderer. |
24 // After that, most of the communication is directly between NaCl plugin | 24 // After that, most of the communication is directly between NaCl plugin |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // The reply message to send. | 70 // The reply message to send. |
71 IPC::Message* reply_msg_; | 71 IPC::Message* reply_msg_; |
72 | 72 |
73 // Socket pairs for the NaCl process and renderer. | 73 // Socket pairs for the NaCl process and renderer. |
74 scoped_ptr<NaClInternal> internal_; | 74 scoped_ptr<NaClInternal> internal_; |
75 | 75 |
76 // Windows platform flag | 76 // Windows platform flag |
77 bool running_on_wow64_; | 77 bool running_on_wow64_; |
78 | 78 |
79 base::ScopedCallbackFactory<NaClProcessHost> callback_factory_; | 79 base::WeakPtrFactory<NaClProcessHost> weak_factory_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); | 81 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); |
82 }; | 82 }; |
83 | 83 |
84 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ | 84 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ |
OLD | NEW |