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

Unified Diff: webkit/plugins/npapi/plugin_utils.h

Issue 10823434: [6] Moves CreateVersionFromString to plugin_utils and updates the callers. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added missing include <algorithm> Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/npapi/plugin_group_unittest.cc ('k') | webkit/plugins/npapi/plugin_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/plugin_utils.h
diff --git a/webkit/plugins/npapi/plugin_utils.h b/webkit/plugins/npapi/plugin_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..6745ef3e0f4531aafa3092572ba4d357b13ca9dc
--- /dev/null
+++ b/webkit/plugins/npapi/plugin_utils.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 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 WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_
+#define WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_
+
+#include "base/string16.h"
+#include "webkit/plugins/webkit_plugins_export.h"
+
+class Version;
+
+namespace webkit {
+namespace npapi {
+
+// Parse a version string as used by a plug-in. This method is more lenient
+// in accepting weird version strings than Version::GetFromString()
+WEBKIT_PLUGINS_EXPORT void CreateVersionFromString(
+ const string16& version_string,
+ Version* parsed_version);
+
+} // namespace npapi
+} // namespace webkit
+
+#endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_
« no previous file with comments | « webkit/plugins/npapi/plugin_group_unittest.cc ('k') | webkit/plugins/npapi/plugin_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698