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

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

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/npapi/plugin_utils.h ('k') | webkit/plugins/npapi/webplugin_delegate_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/plugin_utils.cc
===================================================================
--- webkit/plugins/npapi/plugin_utils.cc (revision 200310)
+++ webkit/plugins/npapi/plugin_utils.cc (working copy)
@@ -13,6 +13,9 @@
namespace webkit {
namespace npapi {
+// Global variable used by the plugin quirk "die after unload".
+bool g_forcefully_terminate_plugin_process = false;
+
void CreateVersionFromString(const base::string16& version_string,
Version* parsed_version) {
// Remove spaces and ')' from the version string,
@@ -52,5 +55,13 @@
#endif
}
+void SetForcefullyTerminatePluginProcess(bool value) {
+ g_forcefully_terminate_plugin_process = value;
+}
+
+bool ShouldForcefullyTerminatePluginProcess() {
+ return g_forcefully_terminate_plugin_process;
+}
+
} // namespace npapi
} // namespace webkit
« no previous file with comments | « webkit/plugins/npapi/plugin_utils.h ('k') | webkit/plugins/npapi/webplugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698