| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_PLUGIN_PLUGIN_THREAD_H_ | 5 #ifndef CHROME_PLUGIN_PLUGIN_THREAD_H_ |
| 6 #define CHROME_PLUGIN_PLUGIN_THREAD_H_ | 6 #define CHROME_PLUGIN_PLUGIN_THREAD_H_ |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/native_library.h" | 9 #include "base/native_library.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 static PluginThread* current(); | 30 static PluginThread* current(); |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 virtual void OnControlMessageReceived(const IPC::Message& msg); | 33 virtual void OnControlMessageReceived(const IPC::Message& msg); |
| 34 | 34 |
| 35 // Thread implementation: | 35 // Thread implementation: |
| 36 virtual void Init(); | 36 virtual void Init(); |
| 37 virtual void CleanUp(); | 37 virtual void CleanUp(); |
| 38 | 38 |
| 39 // Callback for when a channel has been created. | 39 // Callback for when a channel has been created. |
| 40 // On POSIX, |socket| is the channel endpoint socket. | |
| 41 void OnCreateChannel( | 40 void OnCreateChannel( |
| 42 #if defined(OS_POSIX) | |
| 43 base::FileDescriptor socket, | |
| 44 #endif | |
| 45 int process_id, | 41 int process_id, |
| 46 bool off_the_record); | 42 bool off_the_record); |
| 47 void OnPluginMessage(const std::vector<uint8> &data); | 43 void OnPluginMessage(const std::vector<uint8> &data); |
| 48 | 44 |
| 49 scoped_ptr<NotificationService> notification_service_; | 45 scoped_ptr<NotificationService> notification_service_; |
| 50 | 46 |
| 51 // The plugin module which is preloaded in Init | 47 // The plugin module which is preloaded in Init |
| 52 base::NativeLibrary preloaded_plugin_module_; | 48 base::NativeLibrary preloaded_plugin_module_; |
| 53 | 49 |
| 54 // Points to the plugin file that this process hosts. | 50 // Points to the plugin file that this process hosts. |
| 55 FilePath plugin_path_; | 51 FilePath plugin_path_; |
| 56 | 52 |
| 57 DISALLOW_EVIL_CONSTRUCTORS(PluginThread); | 53 DISALLOW_EVIL_CONSTRUCTORS(PluginThread); |
| 58 }; | 54 }; |
| 59 | 55 |
| 60 #endif // CHROME_PLUGIN_PLUGIN_THREAD_H_ | 56 #endif // CHROME_PLUGIN_PLUGIN_THREAD_H_ |
| OLD | NEW |