Index: components/nacl/loader/listener_delegate.h |
diff --git a/components/nacl/loader/listener_delegate.h b/components/nacl/loader/listener_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5c44a1359417123d34014f53b10d0f848d66890c |
--- /dev/null |
+++ b/components/nacl/loader/listener_delegate.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2014 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 COMPONENTS_NACL_LOADER_LISTENER_DELEGATE_H_ |
+#define COMPONENTS_NACL_LOADER_LISTENER_DELEGATE_H_ |
+ |
+#include "base/memory/ref_counted.h" |
+#include "ipc/ipc_channel_handle.h" |
+ |
+namespace base { |
+class MessageLoopProxy; |
+} // namespace base |
+ |
+namespace IPC { |
+class Sender; |
+} // namespace IPC |
+ |
+namespace nacl { |
+ |
+struct NaClStartParams; |
+ |
+class ListenerDelegate { |
+ public: |
+ virtual ~ListenerDelegate() {} |
+ |
+ // Called when the plugin start message is alived from the browser process. |
teravest
2014/08/04 21:15:27
Do you mean received instead of alived?
hidehiko
2014/08/05 04:07:26
You're right. Fixed.
|
+ virtual void Start(const NaClStartParams& params, |
+ scoped_refptr<base::MessageLoopProxy> io_loop_proxy, |
+ IPC::ChannelHandle trusted_channel_handle, |
+ IPC::Sender* sender) = 0; |
+}; |
+ |
+} // namespace nacl |
+ |
+#endif // COMPONENTS_NACL_LOADER_LISTENER_DELEGATE_H_ |