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/content_client.h" | 20 #include "content/public/common/content_client.h" |
21 #include "content/public/common/content_switches.h" | 21 #include "content/public/common/content_switches.h" |
| 22 #include "content/public/common/user_agent.h" |
22 #include "content/public/common/webplugininfo.h" | 23 #include "content/public/common/webplugininfo.h" |
23 #include "net/base/net_util.h" | 24 #include "net/base/net_util.h" |
24 #include "third_party/WebKit/public/web/WebBindings.h" | 25 #include "third_party/WebKit/public/web/WebBindings.h" |
25 #include "third_party/WebKit/public/web/WebKit.h" | 26 #include "third_party/WebKit/public/web/WebKit.h" |
26 #include "third_party/npapi/bindings/npruntime.h" | 27 #include "third_party/npapi/bindings/npruntime.h" |
27 #include "ui/gl/gl_implementation.h" | 28 #include "ui/gl/gl_implementation.h" |
28 #include "ui/gl/gl_surface.h" | 29 #include "ui/gl/gl_surface.h" |
29 | 30 |
30 #if defined(OS_MACOSX) | 31 #if defined(OS_MACOSX) |
31 #include "base/mac/mac_util.h" | 32 #include "base/mac/mac_util.h" |
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 } | 1106 } |
1106 | 1107 |
1107 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) { | 1108 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) { |
1108 scoped_refptr<PluginInstance> plugin(FindInstance(instance)); | 1109 scoped_refptr<PluginInstance> plugin(FindInstance(instance)); |
1109 if (plugin.get()) { | 1110 if (plugin.get()) { |
1110 plugin->URLRedirectResponse(!!allow, notify_data); | 1111 plugin->URLRedirectResponse(!!allow, notify_data); |
1111 } | 1112 } |
1112 } | 1113 } |
1113 | 1114 |
1114 } // extern "C" | 1115 } // extern "C" |
OLD | NEW |