OLD | NEW |
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_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 #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 "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "chrome/common/child_thread.h" | 12 #include "chrome/common/child_thread.h" |
13 #include "chrome/plugin/plugin_channel.h" | 13 #include "chrome/plugin/plugin_channel.h" |
14 #include "webkit/plugins/npapi/plugin_lib.h" | 14 #include "webkit/glue/plugins/plugin_lib.h" |
15 | 15 |
16 #if defined(OS_POSIX) | 16 #if defined(OS_POSIX) |
17 #include "base/file_descriptor_posix.h" | 17 #include "base/file_descriptor_posix.h" |
18 #endif | 18 #endif |
19 | 19 |
20 // The PluginThread class represents a background thread where plugin instances | 20 // The PluginThread class represents a background thread where plugin instances |
21 // live. Communication occurs between WebPluginDelegateProxy in the renderer | 21 // live. Communication occurs between WebPluginDelegateProxy in the renderer |
22 // process and WebPluginDelegateStub in this thread through IPC messages. | 22 // process and WebPluginDelegateStub in this thread through IPC messages. |
23 class PluginThread : public ChildThread { | 23 class PluginThread : public ChildThread { |
24 public: | 24 public: |
(...skipping 20 matching lines...) Expand all Loading... |
45 // The plugin module which is preloaded in Init | 45 // The plugin module which is preloaded in Init |
46 base::NativeLibrary preloaded_plugin_module_; | 46 base::NativeLibrary preloaded_plugin_module_; |
47 | 47 |
48 // Points to the plugin file that this process hosts. | 48 // Points to the plugin file that this process hosts. |
49 FilePath plugin_path_; | 49 FilePath plugin_path_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(PluginThread); | 51 DISALLOW_COPY_AND_ASSIGN(PluginThread); |
52 }; | 52 }; |
53 | 53 |
54 #endif // CHROME_PLUGIN_PLUGIN_THREAD_H_ | 54 #endif // CHROME_PLUGIN_PLUGIN_THREAD_H_ |
OLD | NEW |