OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import <Carbon/Carbon.h> | 5 #import <Carbon/Carbon.h> |
6 | 6 |
7 #include "webkit/glue/plugins/plugin_lib.h" | 7 #include "webkit/glue/plugins/plugin_lib.h" |
8 | 8 |
9 #include "base/native_library.h" | 9 #include "base/native_library.h" |
10 #include "base/scoped_cftyperef.h" | 10 #include "base/scoped_cftyperef.h" |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "base/string_split.h" |
12 #include "base/string_util.h" | 13 #include "base/string_util.h" |
13 #include "base/sys_string_conversions.h" | 14 #include "base/sys_string_conversions.h" |
14 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
15 #include "webkit/glue/plugins/plugin_list.h" | 16 #include "webkit/glue/plugins/plugin_list.h" |
16 | 17 |
17 static const short kSTRTypeDefinitionResourceID = 128; | 18 static const short kSTRTypeDefinitionResourceID = 128; |
18 static const short kSTRTypeDescriptionResourceID = 127; | 19 static const short kSTRTypeDescriptionResourceID = 127; |
19 static const short kSTRPluginDescriptionResourceID = 126; | 20 static const short kSTRPluginDescriptionResourceID = 126; |
20 | 21 |
21 namespace NPAPI | 22 namespace NPAPI |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 338 |
338 if (ReadSTRPluginInfo(filename, bundle.get(), info)) | 339 if (ReadSTRPluginInfo(filename, bundle.get(), info)) |
339 return true; | 340 return true; |
340 | 341 |
341 // ... or not | 342 // ... or not |
342 | 343 |
343 return false; | 344 return false; |
344 } | 345 } |
345 | 346 |
346 } // namespace NPAPI | 347 } // namespace NPAPI |
OLD | NEW |