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_list.h" | 5 #include "webkit/plugins/npapi/plugin_list.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <dlfcn.h> | 8 #include <dlfcn.h> |
9 #if defined(OS_OPENBSD) | 9 #if defined(OS_OPENBSD) |
10 #include <sys/exec_elf.h> | 10 #include <sys/exec_elf.h> |
11 #else | 11 #else |
12 #include <elf.h> | 12 #include <elf.h> |
13 #endif | 13 #endif |
14 #include <fcntl.h> | 14 #include <fcntl.h> |
15 #include <sys/stat.h> | 15 #include <sys/stat.h> |
16 #include <sys/types.h> | 16 #include <sys/types.h> |
17 #include <unistd.h> | 17 #include <unistd.h> |
18 | 18 |
19 #include "base/cpu.h" | 19 #include "base/cpu.h" |
20 #include "base/file_util.h" | 20 #include "base/file_util.h" |
21 #include "base/native_library.h" | 21 #include "base/native_library.h" |
22 #include "base/path_service.h" | 22 #include "base/path_service.h" |
23 #include "base/posix/eintr_wrapper.h" | 23 #include "base/posix/eintr_wrapper.h" |
24 #include "base/sha1.h" | 24 #include "base/sha1.h" |
25 #include "base/string_util.h" | 25 #include "base/string_util.h" |
26 #include "base/stringprintf.h" | 26 #include "base/stringprintf.h" |
27 #include "base/strings/string_split.h" | 27 #include "base/strings/string_split.h" |
28 #include "base/strings/sys_string_conversions.h" | 28 #include "base/strings/sys_string_conversions.h" |
29 #include "base/utf_string_conversions.h" | 29 #include "base/strings/utf_string_conversions.h" |
30 #include "build/build_config.h" | 30 #include "build/build_config.h" |
31 | 31 |
32 // These headers must be included in this order to make the declaration gods | 32 // These headers must be included in this order to make the declaration gods |
33 // happy. | 33 // happy. |
34 #include "base/third_party/nspr/prcpucfg_linux.h" | 34 #include "base/third_party/nspr/prcpucfg_linux.h" |
35 | 35 |
36 namespace webkit { | 36 namespace webkit { |
37 namespace npapi { | 37 namespace npapi { |
38 | 38 |
39 namespace { | 39 namespace { |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 | 584 |
585 // TODO(evanm): prefer the newest version of flash, etc. here? | 585 // TODO(evanm): prefer the newest version of flash, etc. here? |
586 | 586 |
587 VLOG_IF(1, PluginList::DebugPluginLoading()) << "Using " << info.path.value(); | 587 VLOG_IF(1, PluginList::DebugPluginLoading()) << "Using " << info.path.value(); |
588 | 588 |
589 return true; | 589 return true; |
590 } | 590 } |
591 | 591 |
592 } // namespace npapi | 592 } // namespace npapi |
593 } // namespace webkit | 593 } // namespace webkit |
OLD | NEW |