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 |
| 5 #ifndef CHROME_NACL_NACL_LISTENER_H_ |
| 6 #define CHROME_NACL_NACL_LISTENER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <vector> |
| 10 |
| 11 #include "chrome/common/nacl_types.h" |
| 12 #include "ipc/ipc_channel.h" |
| 13 |
| 14 // The NaClListener is an IPC channel listener that waits for a |
| 15 // request to start a NaCl module. |
| 16 class NaClListener : public IPC::Channel::Listener { |
| 17 public: |
| 18 NaClListener(); |
| 19 ~NaClListener(); |
| 20 // Listen for a request to launch a NaCl module. |
| 21 void Listen(); |
| 22 |
| 23 private: |
| 24 void OnStartSelLdr(std::vector<nacl::FileDescriptor> handles, |
| 25 bool have_irt_file); |
| 26 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(NaClListener); |
| 29 }; |
| 30 |
| 31 #endif // CHROME_NACL_NACL_LISTENER_H_ |
OLD | NEW |