| OLD | NEW |
| 1 // Copyright (c) 2006-2008 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_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" |
| 11 #include "chrome/common/child_thread.h" | 11 #include "chrome/common/child_thread.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 24 PluginThread(); | 24 PluginThread(); |
| 25 ~PluginThread(); | 25 ~PluginThread(); |
| 26 | 26 |
| 27 // Returns the one plugin thread. | 27 // Returns the one plugin thread. |
| 28 static PluginThread* current(); | 28 static PluginThread* current(); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 virtual void OnControlMessageReceived(const IPC::Message& msg); | 31 virtual void OnControlMessageReceived(const IPC::Message& msg); |
| 32 | 32 |
| 33 // Callback for when a channel has been created. | 33 // Callback for when a channel has been created. |
| 34 void OnCreateChannel( | 34 void OnCreateChannel(int renderer_id, bool off_the_record); |
| 35 int process_id, | |
| 36 bool off_the_record); | |
| 37 void OnPluginMessage(const std::vector<uint8> &data); | 35 void OnPluginMessage(const std::vector<uint8> &data); |
| 38 | 36 |
| 39 // The plugin module which is preloaded in Init | 37 // The plugin module which is preloaded in Init |
| 40 base::NativeLibrary preloaded_plugin_module_; | 38 base::NativeLibrary preloaded_plugin_module_; |
| 41 | 39 |
| 42 // Points to the plugin file that this process hosts. | 40 // Points to the plugin file that this process hosts. |
| 43 FilePath plugin_path_; | 41 FilePath plugin_path_; |
| 44 | 42 |
| 45 DISALLOW_EVIL_CONSTRUCTORS(PluginThread); | 43 DISALLOW_EVIL_CONSTRUCTORS(PluginThread); |
| 46 }; | 44 }; |
| 47 | 45 |
| 48 #endif // CHROME_PLUGIN_PLUGIN_THREAD_H_ | 46 #endif // CHROME_PLUGIN_PLUGIN_THREAD_H_ |
| OLD | NEW |