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 "content/child/npapi/plugin_host.h" | 5 #include "content/child/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/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "content/child/npapi/plugin_instance.h" | 16 #include "content/child/npapi/plugin_instance.h" |
17 #include "content/child/npapi/plugin_lib.h" | 17 #include "content/child/npapi/plugin_lib.h" |
18 #include "content/child/npapi/plugin_stream_url.h" | 18 #include "content/child/npapi/plugin_stream_url.h" |
19 #include "content/child/npapi/webplugin_delegate.h" | 19 #include "content/child/npapi/webplugin_delegate.h" |
| 20 #include "content/public/common/webplugininfo.h" |
20 #include "net/base/net_util.h" | 21 #include "net/base/net_util.h" |
21 #include "third_party/WebKit/public/web/WebBindings.h" | 22 #include "third_party/WebKit/public/web/WebBindings.h" |
22 #include "third_party/WebKit/public/web/WebKit.h" | 23 #include "third_party/WebKit/public/web/WebKit.h" |
23 #include "third_party/npapi/bindings/npruntime.h" | 24 #include "third_party/npapi/bindings/npruntime.h" |
24 #include "ui/base/ui_base_switches.h" | 25 #include "ui/base/ui_base_switches.h" |
25 #include "ui/gl/gl_implementation.h" | 26 #include "ui/gl/gl_implementation.h" |
26 #include "ui/gl/gl_surface.h" | 27 #include "ui/gl/gl_surface.h" |
27 #include "webkit/common/user_agent/user_agent.h" | 28 #include "webkit/common/user_agent/user_agent.h" |
28 #include "webkit/plugins/webplugininfo.h" | |
29 | 29 |
30 #if defined(OS_MACOSX) | 30 #if defined(OS_MACOSX) |
31 #include "base/mac/mac_util.h" | 31 #include "base/mac/mac_util.h" |
32 #endif | 32 #endif |
33 | 33 |
34 using WebKit::WebBindings; | 34 using WebKit::WebBindings; |
35 | 35 |
36 // Declarations for stub implementations of deprecated functions, which are no | 36 // Declarations for stub implementations of deprecated functions, which are no |
37 // longer listed in npapi.h. | 37 // longer listed in npapi.h. |
38 extern "C" { | 38 extern "C" { |
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 } | 1101 } |
1102 | 1102 |
1103 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) { | 1103 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) { |
1104 scoped_refptr<PluginInstance> plugin(FindInstance(instance)); | 1104 scoped_refptr<PluginInstance> plugin(FindInstance(instance)); |
1105 if (plugin.get()) { | 1105 if (plugin.get()) { |
1106 plugin->URLRedirectResponse(!!allow, notify_data); | 1106 plugin->URLRedirectResponse(!!allow, notify_data); |
1107 } | 1107 } |
1108 } | 1108 } |
1109 | 1109 |
1110 } // extern "C" | 1110 } // extern "C" |
OLD | NEW |