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_instance.h" | 5 #include "content/child/npapi/plugin_instance.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "content/child/npapi/plugin_host.h" | 13 #include "content/child/npapi/plugin_host.h" |
14 #include "content/child/npapi/plugin_lib.h" | 14 #include "content/child/npapi/plugin_lib.h" |
15 #include "content/child/npapi/plugin_stream_url.h" | 15 #include "content/child/npapi/plugin_stream_url.h" |
16 #include "content/child/npapi/plugin_string_stream.h" | 16 #include "content/child/npapi/plugin_string_stream.h" |
17 #include "content/child/npapi/webplugin.h" | 17 #include "content/child/npapi/webplugin.h" |
18 #include "content/child/npapi/webplugin_delegate.h" | 18 #include "content/child/npapi/webplugin_delegate.h" |
| 19 #include "content/child/npapi/webplugin_resource_client.h" |
19 #include "content/public/common/content_constants.h" | 20 #include "content/public/common/content_constants.h" |
20 #include "net/base/escape.h" | 21 #include "net/base/escape.h" |
21 | 22 |
22 #if defined(OS_MACOSX) | 23 #if defined(OS_MACOSX) |
23 #include <ApplicationServices/ApplicationServices.h> | 24 #include <ApplicationServices/ApplicationServices.h> |
24 #endif | 25 #endif |
25 | 26 |
26 namespace content { | 27 namespace content { |
27 | 28 |
28 PluginInstance::PluginInstance(PluginLib* plugin, const std::string& mime_type) | 29 PluginInstance::PluginInstance(PluginLib* plugin, const std::string& mime_type) |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 if (allow) { | 681 if (allow) { |
681 plugin_stream->UpdateUrl( | 682 plugin_stream->UpdateUrl( |
682 plugin_stream->pending_redirect_url().c_str()); | 683 plugin_stream->pending_redirect_url().c_str()); |
683 } | 684 } |
684 break; | 685 break; |
685 } | 686 } |
686 } | 687 } |
687 } | 688 } |
688 | 689 |
689 } // namespace content | 690 } // namespace content |
OLD | NEW |