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

Side by Side Diff: webkit/plugins/webplugininfo.cc

Issue 7670003: Wire experimental Flapper part two (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « webkit/plugins/webplugininfo.h ('k') | no next file » | 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) 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 #include "webkit/plugins/webplugininfo.h" 5 #include "webkit/plugins/webplugininfo.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 9
10 namespace webkit { 10 namespace webkit {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 mime_types(), 60 mime_types(),
61 enabled(USER_ENABLED_POLICY_UNMANAGED), 61 enabled(USER_ENABLED_POLICY_UNMANAGED),
62 type(PLUGIN_TYPE_NPAPI) { 62 type(PLUGIN_TYPE_NPAPI) {
63 } 63 }
64 64
65 bool IsPluginEnabled(const WebPluginInfo& plugin) { 65 bool IsPluginEnabled(const WebPluginInfo& plugin) {
66 return ((plugin.enabled & WebPluginInfo::POLICY_ENABLED) || 66 return ((plugin.enabled & WebPluginInfo::POLICY_ENABLED) ||
67 plugin.enabled == WebPluginInfo::USER_ENABLED_POLICY_UNMANAGED); 67 plugin.enabled == WebPluginInfo::USER_ENABLED_POLICY_UNMANAGED);
68 } 68 }
69 69
70 bool IsPepperPlugin(const WebPluginInfo& plugin) {
71 return ((plugin.type == WebPluginInfo::PLUGIN_TYPE_PEPPER_IN_PROCESS ) ||
72 plugin.type == WebPluginInfo::PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS);
73 }
74
70 } // namespace webkit 75 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/webplugininfo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698