Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1122)

Unified Diff: chrome/nacl/nacl_listener.h

Issue 6995121: New NaCl zygote implementation 2 (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Use IPC::Channel directly instead of ChildProcess Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..ff28ec747528472bce87a77c1a753629081fa21f
--- /dev/null
+++ b/chrome/nacl/nacl_listener.h
@@ -0,0 +1,27 @@
+// 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
+
+
jam 2011/06/21 20:54:08 nit: extra line
Brad Chen 2011/06/21 23:43:48 Done.
+#include "ipc/ipc_channel.h"
+#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.
+
+#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
+
+class NaClListener : public IPC::Channel::Listener {
+ public:
+ NaClListener() {}
+ ~NaClListener() {}
+
+ 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.
+ bool have_irt_file);
+ virtual bool OnMessageReceived(const IPC::Message& msg);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NaClListener);
+};
+
+#endif // CHROME_NACL_NACL_LISTENER_H_

Powered by Google App Engine
This is Rietveld 408576698