Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: chrome/browser/nacl_host/nacl_process_host.h

Issue 2885017: Moved common parts of ChildProcessHost into chrome/common and created a Brows... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Code review changes Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
11 #include "chrome/browser/child_process_host.h" 11 #include "chrome/browser/browser_child_process_host.h"
12 #include "chrome/common/nacl_types.h" 12 #include "chrome/common/nacl_types.h"
13 #include "native_client/src/shared/imc/nacl_imc.h" 13 #include "native_client/src/shared/imc/nacl_imc.h"
14 14
15 class ResourceMessageFilter; 15 class ResourceMessageFilter;
16 16
17 // Represents the browser side of the browser <--> NaCl communication 17 // Represents the browser side of the browser <--> NaCl communication
18 // channel. There will be one NaClProcessHost per NaCl process 18 // channel. There will be one NaClProcessHost per NaCl process
19 // The browser is responsible for starting the NaCl process 19 // The browser is responsible for starting the NaCl process
20 // when requested by the renderer. 20 // when requested by the renderer.
21 // After that, most of the communication is directly between NaCl plugin 21 // After that, most of the communication is directly between NaCl plugin
22 // running in the renderer and NaCl processes. 22 // running in the renderer and NaCl processes.
23 class NaClProcessHost : public ChildProcessHost { 23 class NaClProcessHost : public BrowserChildProcessHost {
24 public: 24 public:
25 NaClProcessHost(ResourceDispatcherHost *resource_dispatcher_host, 25 NaClProcessHost(ResourceDispatcherHost *resource_dispatcher_host,
26 const std::wstring& url); 26 const std::wstring& url);
27 ~NaClProcessHost(); 27 ~NaClProcessHost();
28 28
29 // Initialize the new NaCl process, returning true on success. 29 // Initialize the new NaCl process, returning true on success.
30 bool Launch(ResourceMessageFilter* resource_message_filter, 30 bool Launch(ResourceMessageFilter* resource_message_filter,
31 const int descriptor, 31 const int descriptor,
32 IPC::Message* reply_msg); 32 IPC::Message* reply_msg);
33 33
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // The NaCl specific descriptor for this process. 74 // The NaCl specific descriptor for this process.
75 int descriptor_; 75 int descriptor_;
76 76
77 // Windows platform flag 77 // Windows platform flag
78 bool running_on_wow64_; 78 bool running_on_wow64_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); 80 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost);
81 }; 81 };
82 82
83 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ 83 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/nacl_broker_service_win.cc ('k') | chrome/browser/nacl_host/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698