OLD | NEW |
1 // Copyright (c) 2008, Google Inc. | 1 // Copyright (c) 2008, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... |
30 // These functions are used by the javascript access to the | 30 // These functions are used by the javascript access to the |
31 // netscape.plugins object. See PluginInfoStore.h. | 31 // netscape.plugins object. See PluginInfoStore.h. |
32 // They are also used by WebViewImpl to check if a plugin exists for a given | 32 // They are also used by WebViewImpl to check if a plugin exists for a given |
33 // MIME type. | 33 // MIME type. |
34 // | 34 // |
35 | 35 |
36 #include "config.h" | 36 #include "config.h" |
37 | 37 |
38 #include "ChromiumBridge.h" | 38 #include "ChromiumBridge.h" |
39 #include "PluginData.h" | 39 #include "PluginData.h" |
| 40 #if COMPILER(MSVC) |
| 41 __pragma(warning(push, 0)) |
| 42 #endif |
40 #include "PluginInfoStore.h" | 43 #include "PluginInfoStore.h" |
| 44 #if COMPILER(MSVC) |
| 45 __pragma(warning(pop)) |
| 46 #endif |
| 47 #undef LOG |
41 | 48 |
42 namespace WebCore { | 49 namespace WebCore { |
43 | 50 |
44 // We cache the plugins ourselves, since if we're getting them from the another | 51 // We cache the plugins ourselves, since if we're getting them from the another |
45 // process GetPlugins() will be expensive. | 52 // process GetPlugins() will be expensive. |
46 static bool g_loaded_plugins = false; | 53 static bool g_loaded_plugins = false; |
47 static Vector<PluginInfo*> g_plugins; | 54 static Vector<PluginInfo*> g_plugins; |
48 | 55 |
49 void LoadPlugins(bool refresh) | 56 void LoadPlugins(bool refresh) |
50 { | 57 { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 return mime->type; | 147 return mime->type; |
141 } | 148 } |
142 } | 149 } |
143 } | 150 } |
144 #endif | 151 #endif |
145 | 152 |
146 return String(); | 153 return String(); |
147 } | 154 } |
148 | 155 |
149 } // namespace WebCore | 156 } // namespace WebCore |
OLD | NEW |