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

Side by Side Diff: webkit/plugins/npapi/plugin_utils.h

Issue 14720012: Relanding this as the previous attempt failed due to build errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/npapi/plugin_constants_win.h ('k') | webkit/plugins/npapi/plugin_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
9 #include "webkit/plugins/webkit_plugins_export.h"
10 9
11 namespace base { 10 namespace base {
12 class Version; 11 class Version;
13 } 12 }
14 13
15 namespace webkit { 14 namespace webkit {
16 namespace npapi { 15 namespace npapi {
17 16
18 // Parse a version string as used by a plug-in. This method is more lenient 17 // Parse a version string as used by a plug-in. This method is more lenient
19 // in accepting weird version strings than base::Version::GetFromString() 18 // in accepting weird version strings than base::Version::GetFromString()
20 WEBKIT_PLUGINS_EXPORT void CreateVersionFromString( 19 void CreateVersionFromString(
21 const base::string16& version_string, 20 const base::string16& version_string,
22 base::Version* parsed_version); 21 base::Version* parsed_version);
23 22
24 // Returns true iff NPAPI plugins are supported on the current platform. 23 // Returns true iff NPAPI plugins are supported on the current platform.
25 WEBKIT_PLUGINS_EXPORT bool NPAPIPluginsSupported(); 24 bool NPAPIPluginsSupported();
25
26 // Tells the plugin thread to terminate the process forcefully instead of
27 // exiting cleanly.
28 void SetForcefullyTerminatePluginProcess(bool value);
29
30 // Returns true if the plugin thread should terminate the process forcefully
31 // instead of exiting cleanly.
32 bool ShouldForcefullyTerminatePluginProcess();
33
34
26 } // namespace npapi 35 } // namespace npapi
27 } // namespace webkit 36 } // namespace webkit
28 37
29 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_ 38 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_UTILS_H_
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/plugin_constants_win.h ('k') | webkit/plugins/npapi/plugin_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698