| 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_host.h" | 5 #include "webkit/plugins/npapi/plugin_host.h" | 
| 6 | 6 | 
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" | 
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" | 
| 9 #include "base/logging.h" | 9 #include "base/logging.h" | 
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" | 
| 11 #include "base/string_piece.h" | 11 #include "base/string_piece.h" | 
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" | 
| 13 #include "base/sys_string_conversions.h" | 13 #include "base/sys_string_conversions.h" | 
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" | 
| 15 #include "build/build_config.h" | 15 #include "build/build_config.h" | 
| 16 #include "net/base/net_util.h" | 16 #include "net/base/net_util.h" | 
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 
| 19 #include "third_party/npapi/bindings/npruntime.h" | 19 #include "third_party/npapi/bindings/npruntime.h" | 
| 20 #include "ui/base/ui_base_switches.h" | 20 #include "ui/base/ui_base_switches.h" | 
| 21 #include "ui/gl/gl_implementation.h" | 21 #include "ui/gl/gl_implementation.h" | 
| 22 #include "ui/gl/gl_surface.h" | 22 #include "ui/gl/gl_surface.h" | 
| 23 #include "webkit/glue/webkit_glue.h" |  | 
| 24 #include "webkit/plugins/npapi/plugin_instance.h" | 23 #include "webkit/plugins/npapi/plugin_instance.h" | 
| 25 #include "webkit/plugins/npapi/plugin_lib.h" | 24 #include "webkit/plugins/npapi/plugin_lib.h" | 
| 26 #include "webkit/plugins/npapi/plugin_list.h" | 25 #include "webkit/plugins/npapi/plugin_list.h" | 
| 27 #include "webkit/plugins/npapi/plugin_stream_url.h" | 26 #include "webkit/plugins/npapi/plugin_stream_url.h" | 
| 28 #include "webkit/plugins/npapi/webplugin_delegate.h" | 27 #include "webkit/plugins/npapi/webplugin_delegate.h" | 
| 29 #include "webkit/plugins/webplugininfo.h" | 28 #include "webkit/plugins/webplugininfo.h" | 
|  | 29 #include "webkit/user_agent/user_agent.h" | 
| 30 | 30 | 
| 31 #if defined(OS_MACOSX) | 31 #if defined(OS_MACOSX) | 
| 32 #include "base/mac/mac_util.h" | 32 #include "base/mac/mac_util.h" | 
| 33 #endif | 33 #endif | 
| 34 | 34 | 
| 35 using WebKit::WebBindings; | 35 using WebKit::WebBindings; | 
| 36 | 36 | 
| 37 // Declarations for stub implementations of deprecated functions, which are no | 37 // Declarations for stub implementations of deprecated functions, which are no | 
| 38 // longer listed in npapi.h. | 38 // longer listed in npapi.h. | 
| 39 extern "C" { | 39 extern "C" { | 
| (...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1125 } | 1125 } | 
| 1126 | 1126 | 
| 1127 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) { | 1127 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) { | 
| 1128   scoped_refptr<PluginInstance> plugin(FindInstance(instance)); | 1128   scoped_refptr<PluginInstance> plugin(FindInstance(instance)); | 
| 1129   if (plugin.get()) { | 1129   if (plugin.get()) { | 
| 1130     plugin->URLRedirectResponse(!!allow, notify_data); | 1130     plugin->URLRedirectResponse(!!allow, notify_data); | 
| 1131   } | 1131   } | 
| 1132 } | 1132 } | 
| 1133 | 1133 | 
| 1134 }  // extern "C" | 1134 }  // extern "C" | 
| OLD | NEW | 
|---|