OLD | NEW |
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/strings/utf_string_conversions.h" |
9 | 9 |
10 namespace webkit { | 10 namespace webkit { |
11 | 11 |
12 WebPluginMimeType::WebPluginMimeType() {} | 12 WebPluginMimeType::WebPluginMimeType() {} |
13 | 13 |
14 WebPluginMimeType::WebPluginMimeType(const std::string& m, | 14 WebPluginMimeType::WebPluginMimeType(const std::string& m, |
15 const std::string& f, | 15 const std::string& f, |
16 const std::string& d) | 16 const std::string& d) |
17 : mime_type(m), | 17 : mime_type(m), |
18 file_extensions(), | 18 file_extensions(), |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 (plugin.type == WebPluginInfo::PLUGIN_TYPE_PEPPER_UNSANDBOXED)); | 69 (plugin.type == WebPluginInfo::PLUGIN_TYPE_PEPPER_UNSANDBOXED)); |
70 } | 70 } |
71 | 71 |
72 bool IsOutOfProcessPlugin(const WebPluginInfo& plugin) { | 72 bool IsOutOfProcessPlugin(const WebPluginInfo& plugin) { |
73 return ((plugin.type == WebPluginInfo::PLUGIN_TYPE_NPAPI) || | 73 return ((plugin.type == WebPluginInfo::PLUGIN_TYPE_NPAPI) || |
74 (plugin.type == WebPluginInfo::PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS) || | 74 (plugin.type == WebPluginInfo::PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS) || |
75 (plugin.type == WebPluginInfo::PLUGIN_TYPE_PEPPER_UNSANDBOXED)); | 75 (plugin.type == WebPluginInfo::PLUGIN_TYPE_PEPPER_UNSANDBOXED)); |
76 } | 76 } |
77 | 77 |
78 } // namespace webkit | 78 } // namespace webkit |
OLD | NEW |