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_COMMON_CHROME_PLUGIN_LIB_H_ | 5 #ifndef CHROME_COMMON_CHROME_PLUGIN_LIB_H_ |
6 #define CHROME_COMMON_CHROME_PLUGIN_LIB_H_ | 6 #define CHROME_COMMON_CHROME_PLUGIN_LIB_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
13 #include "base/scoped_ptr.h" | |
14 #include "chrome/common/chrome_plugin_api.h" | 13 #include "chrome/common/chrome_plugin_api.h" |
15 | 14 |
16 class MessageLoop; | 15 class MessageLoop; |
17 | 16 |
18 // A ChromePluginLib is a single Chrome Plugin Library. | 17 // A ChromePluginLib is a single Chrome Plugin Library. |
19 // This class is used in the browser process (IO thread), and the plugin process | 18 // This class is used in the browser process (IO thread), and the plugin process |
20 // (plugin thread). It should not be accessed on other threads, because it | 19 // (plugin thread). It should not be accessed on other threads, because it |
21 // issues a NOTIFY_CHROME_PLUGIN_UNLOADED notification. | 20 // issues a NOTIFY_CHROME_PLUGIN_UNLOADED notification. |
22 class ChromePluginLib : public base::RefCounted<ChromePluginLib> { | 21 class ChromePluginLib : public base::RefCounted<ChromePluginLib> { |
23 public: | 22 public: |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 CPPluginFuncs plugin_funcs_; | 97 CPPluginFuncs plugin_funcs_; |
99 | 98 |
100 // Used for unit tests. | 99 // Used for unit tests. |
101 typedef int (STDCALL *CP_TestFunc)(void*); | 100 typedef int (STDCALL *CP_TestFunc)(void*); |
102 CP_TestFunc CP_Test_; | 101 CP_TestFunc CP_Test_; |
103 | 102 |
104 DISALLOW_COPY_AND_ASSIGN(ChromePluginLib); | 103 DISALLOW_COPY_AND_ASSIGN(ChromePluginLib); |
105 }; | 104 }; |
106 | 105 |
107 #endif // CHROME_COMMON_CHROME_PLUGIN_LIB_H_ | 106 #endif // CHROME_COMMON_CHROME_PLUGIN_LIB_H_ |
OLD | NEW |