| 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_host.h" | 5 #include "webkit/plugins/npapi/plugin_host.h" |
| 6 | 6 |
| 7 #include "app/gfx/gl/gl_context.h" | |
| 8 #include "app/gfx/gl/gl_implementation.h" | |
| 9 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 10 #include "base/logging.h" | 8 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/string_piece.h" | 10 #include "base/string_piece.h" |
| 13 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 14 #include "base/sys_string_conversions.h" | 12 #include "base/sys_string_conversions.h" |
| 15 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 16 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 17 #include "net/base/net_util.h" | 15 #include "net/base/net_util.h" |
| 18 #include "third_party/npapi/bindings/npapi_extensions.h" | 16 #include "third_party/npapi/bindings/npapi_extensions.h" |
| 19 #include "third_party/npapi/bindings/npruntime.h" | 17 #include "third_party/npapi/bindings/npruntime.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
| 20 #include "ui/gfx/gl/gl_context.h" |
| 21 #include "ui/gfx/gl/gl_implementation.h" |
| 22 #include "webkit/glue/webkit_glue.h" | 22 #include "webkit/glue/webkit_glue.h" |
| 23 #include "webkit/plugins/npapi/default_plugin_shared.h" | 23 #include "webkit/plugins/npapi/default_plugin_shared.h" |
| 24 #include "webkit/plugins/npapi/npapi_extension_thunk.h" | 24 #include "webkit/plugins/npapi/npapi_extension_thunk.h" |
| 25 #include "webkit/plugins/npapi/plugin_instance.h" | 25 #include "webkit/plugins/npapi/plugin_instance.h" |
| 26 #include "webkit/plugins/npapi/plugin_lib.h" | 26 #include "webkit/plugins/npapi/plugin_lib.h" |
| 27 #include "webkit/plugins/npapi/plugin_list.h" | 27 #include "webkit/plugins/npapi/plugin_list.h" |
| 28 #include "webkit/plugins/npapi/plugin_stream_url.h" | 28 #include "webkit/plugins/npapi/plugin_stream_url.h" |
| 29 #include "webkit/plugins/npapi/webplugin_delegate.h" | 29 #include "webkit/plugins/npapi/webplugin_delegate.h" |
| 30 #include "webkit/plugins/npapi/webplugininfo.h" | 30 #include "webkit/plugins/npapi/webplugininfo.h" |
| 31 | 31 |
| (...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 } | 1156 } |
| 1157 | 1157 |
| 1158 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) { | 1158 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) { |
| 1159 scoped_refptr<PluginInstance> plugin(FindInstance(instance)); | 1159 scoped_refptr<PluginInstance> plugin(FindInstance(instance)); |
| 1160 if (plugin.get()) { | 1160 if (plugin.get()) { |
| 1161 plugin->URLRedirectResponse(!!allow, notify_data); | 1161 plugin->URLRedirectResponse(!!allow, notify_data); |
| 1162 } | 1162 } |
| 1163 } | 1163 } |
| 1164 | 1164 |
| 1165 } // extern "C" | 1165 } // extern "C" |
| OLD | NEW |