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

Side by Side Diff: chrome/nacl/nacl_listener.h

Issue 7863024: Make the NaCl windows 64 bit binaries not depend on chrome targets. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: simplify chrome_exe.gypi Created 9 years, 3 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
« no previous file with comments | « chrome/nacl/nacl_helper_linux.cc ('k') | chrome/nacl/nacl_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_NACL_NACL_LISTENER_H_ 5 #ifndef CHROME_NACL_NACL_LISTENER_H_
6 #define CHROME_NACL_NACL_LISTENER_H_ 6 #define CHROME_NACL_NACL_LISTENER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "chrome/common/nacl_types.h" 11 #include "chrome/common/nacl_types.h"
12 #include "ipc/ipc_channel.h" 12 #include "ipc/ipc_channel.h"
13 13
14 // The NaClListener is an IPC channel listener that waits for a 14 // The NaClListener is an IPC channel listener that waits for a
15 // request to start a NaCl module. 15 // request to start a NaCl module.
16 class NaClListener : public IPC::Channel::Listener { 16 class NaClListener : public IPC::Channel::Listener {
17 public: 17 public:
18 explicit NaClListener(); 18 NaClListener();
19 virtual ~NaClListener(); 19 virtual ~NaClListener();
20 // Listen for a request to launch a NaCl module. 20 // Listen for a request to launch a NaCl module.
21 void Listen(); 21 void Listen();
22 void set_debug_enabled(bool value) {debug_enabled_ = value;} 22 void set_debug_enabled(bool value) {debug_enabled_ = value;}
23
23 private: 24 private:
24 bool debug_enabled_;
25 void OnStartSelLdr(std::vector<nacl::FileDescriptor> handles, 25 void OnStartSelLdr(std::vector<nacl::FileDescriptor> handles,
26 bool have_irt_file); 26 bool have_irt_file);
27 virtual bool OnMessageReceived(const IPC::Message& msg); 27 virtual bool OnMessageReceived(const IPC::Message& msg);
28 28
29 bool debug_enabled_;
30
29 DISALLOW_COPY_AND_ASSIGN(NaClListener); 31 DISALLOW_COPY_AND_ASSIGN(NaClListener);
30 }; 32 };
31 33
32 #endif // CHROME_NACL_NACL_LISTENER_H_ 34 #endif // CHROME_NACL_NACL_LISTENER_H_
OLDNEW
« no previous file with comments | « chrome/nacl/nacl_helper_linux.cc ('k') | chrome/nacl/nacl_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698