summaryrefslogtreecommitdiffstats
path: root/chrome/plugin/plugin_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/plugin/plugin_thread.h')
-rw-r--r--chrome/plugin/plugin_thread.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/chrome/plugin/plugin_thread.h b/chrome/plugin/plugin_thread.h
index 052be0a..911940a 100644
--- a/chrome/plugin/plugin_thread.h
+++ b/chrome/plugin/plugin_thread.h
@@ -7,10 +7,15 @@
#include "base/file_path.h"
#include "base/native_library.h"
+#include "build/build_config.h"
#include "chrome/common/child_thread.h"
#include "chrome/plugin/plugin_channel.h"
#include "webkit/glue/plugins/plugin_lib.h"
+#if defined(OS_POSIX)
+#include "base/file_descriptor_posix.h"
+#endif
+
class NotificationService;
// The PluginThread class represents a background thread where plugin instances
@@ -31,7 +36,14 @@ class PluginThread : public ChildThread {
virtual void Init();
virtual void CleanUp();
- void OnCreateChannel(int process_id, bool off_the_record);
+ // Callback for when a channel has been created.
+ // On POSIX, |socket| is the channel endpoint socket.
+ void OnCreateChannel(
+#if defined(OS_POSIX)
+ base::FileDescriptor socket,
+#endif
+ int process_id,
+ bool off_the_record);
void OnPluginMessage(const std::vector<uint8> &data);
scoped_ptr<NotificationService> notification_service_;