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/public/common/content_constants.h" |
19 #include "net/base/escape.h" | 20 #include "net/base/escape.h" |
20 #include "webkit/plugins/plugin_constants.h" | |
21 | 21 |
22 #if defined(OS_MACOSX) | 22 #if defined(OS_MACOSX) |
23 #include <ApplicationServices/ApplicationServices.h> | 23 #include <ApplicationServices/ApplicationServices.h> |
24 #endif | 24 #endif |
25 | 25 |
26 namespace content { | 26 namespace content { |
27 | 27 |
28 PluginInstance::PluginInstance(PluginLib* plugin, const std::string& mime_type) | 28 PluginInstance::PluginInstance(PluginLib* plugin, const std::string& mime_type) |
29 : plugin_(plugin), | 29 : plugin_(plugin), |
30 npp_(0), | 30 npp_(0), |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 if (allow) { | 678 if (allow) { |
679 plugin_stream->UpdateUrl( | 679 plugin_stream->UpdateUrl( |
680 plugin_stream->pending_redirect_url().c_str()); | 680 plugin_stream->pending_redirect_url().c_str()); |
681 } | 681 } |
682 break; | 682 break; |
683 } | 683 } |
684 } | 684 } |
685 } | 685 } |
686 | 686 |
687 } // namespace content | 687 } // namespace content |
OLD | NEW |