| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/native_library.h" | 10 #include "base/native_library.h" |
| 11 #include "chrome/common/child_thread.h" | 11 #include "chrome/common/child_thread.h" |
| 12 #include "chrome/common/nacl_types.h" | 12 #include "chrome/common/nacl_types.h" |
| 13 | 13 |
| 14 // The NaClThread class represents a background thread where NaCl app gets | 14 // The NaClThread class represents a background thread where NaCl app gets |
| 15 // started. | 15 // started. |
| 16 class NaClThread : public ChildThread { | 16 class NaClThread : public ChildThread { |
| 17 public: | 17 public: |
| 18 NaClThread(); | 18 NaClThread(); |
| 19 ~NaClThread(); | 19 ~NaClThread(); |
| 20 // Returns the one NaCl thread. | 20 // Returns the one NaCl thread. |
| 21 static NaClThread* current(); | 21 static NaClThread* current(); |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 virtual void OnControlMessageReceived(const IPC::Message& msg); | 24 virtual void OnControlMessageReceived(const IPC::Message& msg); |
| 25 void OnStartSelLdr(int channel_descriptor, nacl::FileDescriptor handle); | 25 void OnStartSelLdr(std::vector<nacl::FileDescriptor> handles); |
| 26 | 26 |
| 27 // TODO(gregoryd): do we need to override Cleanup as in PluginThread? | 27 // TODO(gregoryd): do we need to override Cleanup as in PluginThread? |
| 28 DISALLOW_COPY_AND_ASSIGN(NaClThread); | 28 DISALLOW_COPY_AND_ASSIGN(NaClThread); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 #endif // CHROME_NACL_NACL_THREAD_H_ | 31 #endif // CHROME_NACL_NACL_THREAD_H_ |
| OLD | NEW |