OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "webkit/plugins/npapi/plugin_utils.h" | 5 #include "webkit/plugins/npapi/plugin_utils.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/string_util.h" | |
10 #include "base/strings/string_split.h" | 9 #include "base/strings/string_split.h" |
| 10 #include "base/strings/string_util.h" |
11 #include "base/version.h" | 11 #include "base/version.h" |
12 | 12 |
13 namespace webkit { | 13 namespace webkit { |
14 namespace npapi { | 14 namespace npapi { |
15 | 15 |
16 // Global variable used by the plugin quirk "die after unload". | 16 // Global variable used by the plugin quirk "die after unload". |
17 bool g_forcefully_terminate_plugin_process = false; | 17 bool g_forcefully_terminate_plugin_process = false; |
18 | 18 |
19 void CreateVersionFromString(const base::string16& version_string, | 19 void CreateVersionFromString(const base::string16& version_string, |
20 Version* parsed_version) { | 20 Version* parsed_version) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 void SetForcefullyTerminatePluginProcess(bool value) { | 58 void SetForcefullyTerminatePluginProcess(bool value) { |
59 g_forcefully_terminate_plugin_process = value; | 59 g_forcefully_terminate_plugin_process = value; |
60 } | 60 } |
61 | 61 |
62 bool ShouldForcefullyTerminatePluginProcess() { | 62 bool ShouldForcefullyTerminatePluginProcess() { |
63 return g_forcefully_terminate_plugin_process; | 63 return g_forcefully_terminate_plugin_process; |
64 } | 64 } |
65 | 65 |
66 } // namespace npapi | 66 } // namespace npapi |
67 } // namespace webkit | 67 } // namespace webkit |
OLD | NEW |