| 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_PROCESS_H_ | 5 #ifndef CHROME_PLUGIN_PLUGIN_PROCESS_H_ |
| 6 #define CHROME_PLUGIN_PLUGIN_PROCESS_H_ | 6 #define CHROME_PLUGIN_PLUGIN_PROCESS_H_ |
| 7 | 7 |
| 8 #include "base/file_path.h" |
| 8 #include "chrome/common/child_process.h" | 9 #include "chrome/common/child_process.h" |
| 9 #include "chrome/plugin/plugin_thread.h" | 10 #include "chrome/plugin/plugin_thread.h" |
| 10 | 11 |
| 11 // Represents the plugin end of the renderer<->plugin connection. The | 12 // Represents the plugin end of the renderer<->plugin connection. The |
| 12 // opposite end is the PluginProcessHost. This is a singleton object for | 13 // opposite end is the PluginProcessHost. This is a singleton object for |
| 13 // each plugin. | 14 // each plugin. |
| 14 class PluginProcess : public ChildProcess { | 15 class PluginProcess : public ChildProcess { |
| 15 public: | 16 public: |
| 16 static bool GlobalInit(const std::wstring& channel_name, | 17 static bool GlobalInit(const std::wstring& channel_name, |
| 17 const FilePath& plugin_path); | 18 const FilePath& plugin_path); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 42 | 43 |
| 43 // The thread where plugin instances live. Since NPAPI plugins weren't | 44 // The thread where plugin instances live. Since NPAPI plugins weren't |
| 44 // created with multi-threading in mind, running multiple instances on | 45 // created with multi-threading in mind, running multiple instances on |
| 45 // different threads would be asking for trouble. | 46 // different threads would be asking for trouble. |
| 46 PluginThread plugin_thread_; | 47 PluginThread plugin_thread_; |
| 47 | 48 |
| 48 DISALLOW_EVIL_CONSTRUCTORS(PluginProcess); | 49 DISALLOW_EVIL_CONSTRUCTORS(PluginProcess); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 #endif // CHROME_PLUGIN_PLUGIN_PROCESS_H_ | 52 #endif // CHROME_PLUGIN_PLUGIN_PROCESS_H_ |
| OLD | NEW |