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

Side by Side 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: Enable with command-line flag, pass channel ID from zygote 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 "chrome/common/nacl_types.h"
10 #include "ipc/ipc_channel.h"
11
12 class NaClListener : public IPC::Channel::Listener {
13 public:
14 NaClListener();
15 ~NaClListener();
16 void Listen();
jam 2011/06/24 00:10:34 nit: please document this
Brad Chen 2011/06/24 00:40:11 Done.
17
18 private:
19 void OnStartSelLdr(std::vector<nacl::FileDescriptor> handles,
20 bool have_irt_file);
21 virtual bool OnMessageReceived(const IPC::Message& msg);
22
23 std::string channel_name_;
24 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.
25
26 DISALLOW_COPY_AND_ASSIGN(NaClListener);
27 };
28
29 #endif // CHROME_NACL_NACL_LISTENER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698