Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: webkit/glue/plugins/plugin_lib.h

Issue 5998002: Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/plugins/plugin_instance_mac.mm ('k') | webkit/glue/plugins/plugin_lib.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 WEBKIT_PLUGINS_NPAPI_PLUGIN_LIB_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_PLUGIN_LIB_H_
6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_LIB_H_ 6 #define WEBKIT_GLUE_PLUGINS_PLUGIN_LIB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/native_library.h" 12 #include "base/native_library.h"
13 #include "base/ref_counted.h" 13 #include "base/ref_counted.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "webkit/plugins/npapi/plugin_list.h" 15 #include "webkit/glue/plugins/plugin_list.h"
16 #include "webkit/plugins/npapi/webplugin.h" 16 #include "webkit/glue/plugins/webplugin.h"
17 17
18 class FilePath; 18 class FilePath;
19 struct WebPluginInfo; 19 struct WebPluginInfo;
20 20
21 namespace webkit { 21 namespace NPAPI {
22 namespace npapi {
23 22
24 class PluginInstance; 23 class PluginInstance;
25 24
26 // A PluginLib is a single NPAPI Plugin Library, and is the lifecycle 25 // A PluginLib is a single NPAPI Plugin Library, and is the lifecycle
27 // manager for new PluginInstances. 26 // manager for new PluginInstances.
28 class PluginLib : public base::RefCounted<PluginLib> { 27 class PluginLib : public base::RefCounted<PluginLib> {
29 public: 28 public:
30 static PluginLib* CreatePluginLib(const FilePath& filename); 29 static PluginLib* CreatePluginLib(const FilePath& filename);
31 30
32 // Creates a WebPluginInfo structure given a plugin's path. On success 31 // Creates a WebPluginInfo structure given a plugin's path. On success
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 NPSavedData *saved_data_; // Persisted plugin info for NPAPI. 108 NPSavedData *saved_data_; // Persisted plugin info for NPAPI.
110 int instance_count_; // Count of plugins in use. 109 int instance_count_; // Count of plugins in use.
111 bool skip_unload_; // True if library_ should not be unloaded. 110 bool skip_unload_; // True if library_ should not be unloaded.
112 111
113 // Function pointers to entry points into the plugin. 112 // Function pointers to entry points into the plugin.
114 PluginEntryPoints entry_points_; 113 PluginEntryPoints entry_points_;
115 114
116 DISALLOW_COPY_AND_ASSIGN(PluginLib); 115 DISALLOW_COPY_AND_ASSIGN(PluginLib);
117 }; 116 };
118 117
119 } // namespace npapi 118 } // namespace NPAPI
120 } // namespace webkit
121 119
122 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_LIB_H_ 120 #endif // WEBKIT_GLUE_PLUGINS_PLUGIN_LIB_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/plugin_instance_mac.mm ('k') | webkit/glue/plugins/plugin_lib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698