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

Side by Side Diff: content/common/pepper_plugin_registry.h

Issue 7848025: Store plug-in enabled/disabled state in PluginPrefs instead of WebPluginInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 9 years, 3 months 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ 5 #ifndef CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_
6 #define CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ 6 #define CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 14 matching lines...) Expand all
25 25
26 // Indicates internal plugins for which there's not actually a library. 26 // Indicates internal plugins for which there's not actually a library.
27 // These plugins are implemented in the Chrome binary using a separate set 27 // These plugins are implemented in the Chrome binary using a separate set
28 // of entry points (see internal_entry_points below). 28 // of entry points (see internal_entry_points below).
29 // Defaults to false. 29 // Defaults to false.
30 bool is_internal; 30 bool is_internal;
31 31
32 // True when this plugin should be run out of process. Defaults to false. 32 // True when this plugin should be run out of process. Defaults to false.
33 bool is_out_of_process; 33 bool is_out_of_process;
34 34
35 // Whether the plugin is enabled. Defaults to true.
36 bool enabled;
37
38 FilePath path; // Internal plugins have "internal-[name]" as path. 35 FilePath path; // Internal plugins have "internal-[name]" as path.
39 std::string name; 36 std::string name;
40 std::string description; 37 std::string description;
41 std::string version; 38 std::string version;
42 std::vector<webkit::WebPluginMimeType> mime_types; 39 std::vector<webkit::WebPluginMimeType> mime_types;
43 40
44 // When is_internal is set, this contains the function pointers to the 41 // When is_internal is set, this contains the function pointers to the
45 // entry points for the internal plugins. 42 // entry points for the internal plugins.
46 webkit::ppapi::PluginModule::EntryPoints internal_entry_points; 43 webkit::ppapi::PluginModule::EntryPoints internal_entry_points;
47 }; 44 };
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // non-crashed modules. If an out-of-process module crashes, it may 115 // non-crashed modules. If an out-of-process module crashes, it may
119 // continue as long as there are WebKit references to it, but it will not 116 // continue as long as there are WebKit references to it, but it will not
120 // appear in this list. 117 // appear in this list.
121 typedef std::map<FilePath, webkit::ppapi::PluginModule*> NonOwningModuleMap; 118 typedef std::map<FilePath, webkit::ppapi::PluginModule*> NonOwningModuleMap;
122 NonOwningModuleMap live_modules_; 119 NonOwningModuleMap live_modules_;
123 120
124 DISALLOW_COPY_AND_ASSIGN(PepperPluginRegistry); 121 DISALLOW_COPY_AND_ASSIGN(PepperPluginRegistry);
125 }; 122 };
126 123
127 #endif // CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ 124 #endif // CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | content/common/pepper_plugin_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698