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

Side by Side Diff: chrome/browser/nacl_host/nacl_broker_host_win.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
« no previous file with comments | « chrome/browser/memory_details_win.cc ('k') | chrome/browser/nacl_host/nacl_broker_host_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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_
OLDNEW
« no previous file with comments | « chrome/browser/memory_details_win.cc ('k') | chrome/browser/nacl_host/nacl_broker_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698