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