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_lib.h" | 5 #include "webkit/plugins/npapi/plugin_lib.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #if defined(OS_OPENBSD) | 8 #if defined(OS_OPENBSD) |
9 #include <sys/exec_elf.h> | 9 #include <sys/exec_elf.h> |
10 #else | 10 #else |
11 #include <elf.h> | 11 #include <elf.h> |
12 #endif | 12 #endif |
13 #include <fcntl.h> | 13 #include <fcntl.h> |
14 #include <sys/stat.h> | 14 #include <sys/stat.h> |
15 #include <sys/types.h> | 15 #include <sys/types.h> |
16 #include <unistd.h> | 16 #include <unistd.h> |
17 | 17 |
18 #include "base/file_util.h" | 18 #include "base/file_util.h" |
19 #include "base/posix/eintr_wrapper.h" | 19 #include "base/posix/eintr_wrapper.h" |
20 #include "base/string_split.h" | |
21 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 21 #include "base/strings/string_split.h" |
22 #include "base/sys_string_conversions.h" | 22 #include "base/sys_string_conversions.h" |
23 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
24 #include "webkit/plugins/npapi/plugin_list.h" | 24 #include "webkit/plugins/npapi/plugin_list.h" |
25 | 25 |
26 // These headers must be included in this order to make the declaration gods | 26 // These headers must be included in this order to make the declaration gods |
27 // happy. | 27 // happy. |
28 #include "base/third_party/nspr/prcpucfg_linux.h" | 28 #include "base/third_party/nspr/prcpucfg_linux.h" |
29 | 29 |
30 namespace webkit { | 30 namespace webkit { |
31 namespace npapi { | 31 namespace npapi { |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 break; | 299 break; |
300 } | 300 } |
301 } | 301 } |
302 if (!version.empty()) { | 302 if (!version.empty()) { |
303 info->version = UTF8ToUTF16(version); | 303 info->version = UTF8ToUTF16(version); |
304 } | 304 } |
305 } | 305 } |
306 | 306 |
307 } // namespace npapi | 307 } // namespace npapi |
308 } // namespace webkit | 308 } // namespace webkit |
OLD | NEW |