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

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

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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/broker_thread.cc ('k') | chrome/nacl/nacl_thread.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_THREAD_H_ 5 #ifndef CHROME_NACL_NACL_THREAD_H_
6 #define CHROME_NACL_NACL_THREAD_H_ 6 #define CHROME_NACL_NACL_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/native_library.h" 9 #include "base/native_library.h"
10 #include "chrome/common/child_thread.h" 10 #include "chrome/common/child_thread.h"
11 #include "chrome/common/nacl_types.h" 11 #include "chrome/common/nacl_types.h"
12 12
13 // The NaClThread class represents a background thread where NaCl app gets 13 // The NaClThread class represents a background thread where NaCl app gets
14 // started. 14 // started.
15 class NaClThread : public ChildThread { 15 class NaClThread : public ChildThread {
16 public: 16 public:
17 explicit NaClThread(bool debug); 17 explicit NaClThread(bool debug);
18 ~NaClThread(); 18 ~NaClThread();
19 // Returns the one NaCl thread. 19 // Returns the one NaCl thread.
20 static NaClThread* current(); 20 static NaClThread* current();
21 21
22 private: 22 private:
23 virtual void OnControlMessageReceived(const IPC::Message& msg); 23 virtual bool OnControlMessageReceived(const IPC::Message& msg);
24 void OnStartSelLdr(std::vector<nacl::FileDescriptor> handles); 24 void OnStartSelLdr(std::vector<nacl::FileDescriptor> handles);
25 25
26 int debug_enabled_; 26 int debug_enabled_;
27 27
28 // TODO(gregoryd): do we need to override Cleanup as in PluginThread? 28 // TODO(gregoryd): do we need to override Cleanup as in PluginThread?
29 DISALLOW_COPY_AND_ASSIGN(NaClThread); 29 DISALLOW_COPY_AND_ASSIGN(NaClThread);
30 }; 30 };
31 31
32 #endif // CHROME_NACL_NACL_THREAD_H_ 32 #endif // CHROME_NACL_NACL_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/nacl/broker_thread.cc ('k') | chrome/nacl/nacl_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698