blob: 77e65e6b4e6d11ae95808e7813a803cc09310263 [file] [log] [blame]
[email protected]61fcb162012-09-04 23:08:541// 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
3// found in the LICENSE file.
4
5#ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_
6#define WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_
7
8#include "base/string16.h"
9#include "webkit/plugins/webkit_plugins_export.h"
10
11class Version;
12
13namespace webkit {
14namespace npapi {
15
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()
18WEBKIT_PLUGINS_EXPORT void CreateVersionFromString(
19 const string16& version_string,
20 Version* parsed_version);
21
[email protected]1b51720a2012-12-19 17:16:1022// Returns true iff NPAPI plugins are supported on the current platform.
23WEBKIT_PLUGINS_EXPORT bool NPAPIPluginsSupported();
[email protected]61fcb162012-09-04 23:08:5424} // namespace npapi
25} // namespace webkit
26
27#endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_