Chromium Code Reviews| Index: chrome/common/plugin_utils.h |
| diff --git a/chrome/common/plugin_utils.h b/chrome/common/plugin_utils.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a2eb273001f72c2fea55080dc3422fc13175d015 |
| --- /dev/null |
| +++ b/chrome/common/plugin_utils.h |
| @@ -0,0 +1,15 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_COMMON_PLUGIN_UTILS_H_ |
| +#define CHROME_COMMON_PLUGIN_UTILS_H_ |
| + |
| +namespace content { |
| +struct WebPluginInfo; |
| +} |
| + |
| +// For certain sandboxed Pepper plugins, use the JavaScript Content Settings. |
|
Lei Zhang
2016/09/23 16:49:44
// Returns whether a given |plugin| should use the
tommycli
2016/09/23 16:53:34
Done. Thanks!
|
| +bool ShouldUseJavaScriptSettingForPlugin(const content::WebPluginInfo& plugin); |
| + |
| +#endif // CHROME_COMMON_PLUGIN_UTILS_H_ |