Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 #ifndef CHROME_NACL_NACL_LISTENER_H_ | |
| 5 #define CHROME_NACL_NACL_LISTENER_H_ | |
| 6 #pragma once | |
| 7 | |
| 8 | |
|
jam
2011/06/21 20:54:08
nit: extra line
Brad Chen
2011/06/21 23:43:48
Done.
| |
| 9 #include "ipc/ipc_channel.h" | |
| 10 #include "chrome/common/nacl_messages.h" | |
|
jam
2011/06/21 20:54:08
nit: we only include messages files from cc files
Brad Chen
2011/06/21 23:43:48
Done.
| |
| 11 | |
| 12 #define kNaClListenerHandle "nacllistenerhandle" | |
|
jam
2011/06/21 20:54:08
the channel name can't be hardcoded. there are a
Brad Chen
2011/06/21 23:43:48
Done.
This handle is passed into the constructor
| |
| 13 | |
| 14 class NaClListener : public IPC::Channel::Listener { | |
| 15 public: | |
| 16 NaClListener() {} | |
| 17 ~NaClListener() {} | |
| 18 | |
| 19 void OnStartSelLdr(std::vector<nacl::FileDescriptor> handles, | |
|
jam
2011/06/21 20:54:08
nit: the usual style is to make channel handlers p
Brad Chen
2011/06/21 23:43:48
Done.
| |
| 20 bool have_irt_file); | |
| 21 virtual bool OnMessageReceived(const IPC::Message& msg); | |
| 22 | |
| 23 private: | |
| 24 DISALLOW_COPY_AND_ASSIGN(NaClListener); | |
| 25 }; | |
| 26 | |
| 27 #endif // CHROME_NACL_NACL_LISTENER_H_ | |
| OLD | NEW |