| 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/files/file_util.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
| 13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "base/strings/sys_string_conversions.h" | 14 #include "base/strings/sys_string_conversions.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "content/child/npapi/plugin_instance.h" | 17 #include "content/child/npapi/plugin_instance.h" |
| 18 #include "content/child/npapi/plugin_lib.h" | 18 #include "content/child/npapi/plugin_lib.h" |
| (...skipping 1082 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 |