| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UTILS_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_ |
| 6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_ |
| 7 | 7 |
| 8 #include "base/string16.h" | 8 #include "base/string16.h.h" |
| 9 #include "webkit/plugins/webkit_plugins_export.h" | 9 #include "webkit/plugins/webkit_plugins_export.h" |
| 10 | 10 |
| 11 class Version; | 11 class Version; |
| 12 | 12 |
| 13 namespace webkit { | 13 namespace webkit { |
| 14 namespace npapi { | 14 namespace npapi { |
| 15 | 15 |
| 16 // Parse a version string as used by a plug-in. This method is more lenient | 16 // Parse a version string as used by a plug-in. This method is more lenient |
| 17 // in accepting weird version strings than Version::GetFromString() | 17 // in accepting weird version strings than Version::GetFromString() |
| 18 WEBKIT_PLUGINS_EXPORT void CreateVersionFromString( | 18 WEBKIT_PLUGINS_EXPORT void CreateVersionFromString( |
| 19 const string16& version_string, | 19 const base::string16& version_string, |
| 20 Version* parsed_version); | 20 Version* parsed_version); |
| 21 | 21 |
| 22 // Returns true iff NPAPI plugins are supported on the current platform. | 22 // Returns true iff NPAPI plugins are supported on the current platform. |
| 23 WEBKIT_PLUGINS_EXPORT bool NPAPIPluginsSupported(); | 23 WEBKIT_PLUGINS_EXPORT bool NPAPIPluginsSupported(); |
| 24 } // namespace npapi | 24 } // namespace npapi |
| 25 } // namespace webkit | 25 } // namespace webkit |
| 26 | 26 |
| 27 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_ | 27 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_ |
| OLD | NEW |