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

Side by Side Diff: chrome/nacl/broker_thread.h

Issue 7661031: Tag IPC::Channel::Listener implementations with OVERRIDE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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/service/service_process_control.h ('k') | chrome/service/service_ipc_server.h » ('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_NACL_BROKER_THREAD_H_ 5 #ifndef CHROME_NACL_BROKER_THREAD_H_
6 #define CHROME_NACL_BROKER_THREAD_H_ 6 #define CHROME_NACL_BROKER_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/process.h" 9 #include "base/process.h"
10 #include "chrome/common/nacl_types.h" 10 #include "chrome/common/nacl_types.h"
11 #include "content/common/child_thread.h" 11 #include "content/common/child_thread.h"
12 12
13 #if defined(OS_WIN) 13 #if defined(OS_WIN)
14 #include "sandbox/src/sandbox.h" 14 #include "sandbox/src/sandbox.h"
15 #endif 15 #endif
16 16
17 // The BrokerThread class represents the thread that handles the messages from 17 // The BrokerThread class represents the thread that handles the messages from
18 // the browser process and starts NaCl loader processes. 18 // the browser process and starts NaCl loader processes.
19 class NaClBrokerThread : public ChildThread { 19 class NaClBrokerThread : public ChildThread {
20 public: 20 public:
21 NaClBrokerThread(); 21 NaClBrokerThread();
22 ~NaClBrokerThread(); 22 ~NaClBrokerThread();
23 // Returns the one NaCl thread. 23 // Returns the one NaCl thread.
24 static NaClBrokerThread* current(); 24 static NaClBrokerThread* current();
25 25
26 virtual void OnChannelConnected(int32 peer_pid); 26 // IPC::Channel::Listener implementation.
27 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
27 28
28 private: 29 private:
29 virtual bool OnControlMessageReceived(const IPC::Message& msg); 30 virtual bool OnControlMessageReceived(const IPC::Message& msg);
30 void OnLaunchLoaderThroughBroker(const std::wstring& loader_channel_id); 31 void OnLaunchLoaderThroughBroker(const std::wstring& loader_channel_id);
31 void OnShareBrowserHandle(int browser_handle); 32 void OnShareBrowserHandle(int browser_handle);
32 void OnStopBroker(); 33 void OnStopBroker();
33 34
34 base::ProcessHandle browser_handle_; 35 base::ProcessHandle browser_handle_;
35 sandbox::BrokerServices* broker_services_; 36 sandbox::BrokerServices* broker_services_;
36 37
37 DISALLOW_COPY_AND_ASSIGN(NaClBrokerThread); 38 DISALLOW_COPY_AND_ASSIGN(NaClBrokerThread);
38 }; 39 };
39 40
40 #endif // CHROME_NACL_BROKER_THREAD_H_ 41 #endif // CHROME_NACL_BROKER_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/browser/service/service_process_control.h ('k') | chrome/service/service_ipc_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698