OLD | NEW |
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 #include "webkit/plugins/npapi/plugin_list.h" | 5 #include "webkit/plugins/npapi/plugin_list.h" |
6 | 6 |
7 #import <Carbon/Carbon.h> | 7 #import <Carbon/Carbon.h> |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/mac/mac_util.h" | 11 #include "base/mac/mac_util.h" |
12 #include "base/mac/scoped_cftyperef.h" | 12 #include "base/mac/scoped_cftyperef.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/native_library.h" | 14 #include "base/native_library.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
18 #include "base/strings/sys_string_conversions.h" | 18 #include "base/strings/sys_string_conversions.h" |
19 #include "base/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
20 | 20 |
21 using base::mac::ScopedCFTypeRef; | 21 using base::mac::ScopedCFTypeRef; |
22 | 22 |
23 namespace webkit { | 23 namespace webkit { |
24 namespace npapi { | 24 namespace npapi { |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 void GetPluginCommonDirectory(std::vector<base::FilePath>* plugin_dirs, | 28 void GetPluginCommonDirectory(std::vector<base::FilePath>* plugin_dirs, |
29 bool user) { | 29 bool user) { |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 } | 294 } |
295 | 295 |
296 bool PluginList::ShouldLoadPluginUsingPluginList( | 296 bool PluginList::ShouldLoadPluginUsingPluginList( |
297 const WebPluginInfo& info, | 297 const WebPluginInfo& info, |
298 std::vector<webkit::WebPluginInfo>* plugins) { | 298 std::vector<webkit::WebPluginInfo>* plugins) { |
299 return !IsBlacklistedPlugin(info); | 299 return !IsBlacklistedPlugin(info); |
300 } | 300 } |
301 | 301 |
302 } // namespace npapi | 302 } // namespace npapi |
303 } // namespace webkit | 303 } // namespace webkit |
OLD | NEW |