Index: chrome/nacl/nacl_listener.h |
diff --git a/chrome/nacl/nacl_listener.h b/chrome/nacl/nacl_listener.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..79207d460478179e54eb0a436d67ef359a69496c |
--- /dev/null |
+++ b/chrome/nacl/nacl_listener.h |
@@ -0,0 +1,29 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+#ifndef CHROME_NACL_NACL_LISTENER_H_ |
+#define CHROME_NACL_NACL_LISTENER_H_ |
+#pragma once |
+ |
+#include "base/native_library.h" |
+#include "chrome/common/nacl_types.h" |
+#include "ipc/ipc_channel.h" |
+ |
+class NaClListener : public IPC::Channel::Listener { |
+ public: |
+ NaClListener(); |
+ ~NaClListener(); |
+ void Listen(); |
jam
2011/06/24 00:10:34
nit: please document this
Brad Chen
2011/06/24 00:40:11
Done.
|
+ |
+ private: |
+ void OnStartSelLdr(std::vector<nacl::FileDescriptor> handles, |
+ bool have_irt_file); |
+ virtual bool OnMessageReceived(const IPC::Message& msg); |
+ |
+ std::string channel_name_; |
+ IPC::Channel *channel_; |
jam
2011/06/24 00:10:34
this should be a scoped_ptr
Brad Chen
2011/06/24 00:40:11
Done.
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(NaClListener); |
+}; |
+ |
+#endif // CHROME_NACL_NACL_LISTENER_H_ |