OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/renderer/plugins/non_loadable_plugin_placeholder.h" | 5 #include "chrome/renderer/plugins/non_loadable_plugin_placeholder.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/common/render_messages.h" | 9 #include "chrome/common/render_messages.h" |
10 #include "chrome/grit/generated_resources.h" | |
11 #include "chrome/grit/renderer_resources.h" | 10 #include "chrome/grit/renderer_resources.h" |
12 #include "components/plugins/renderer/plugin_placeholder.h" | 11 #include "components/plugins/renderer/plugin_placeholder.h" |
13 #include "components/strings/grit/components_strings.h" | 12 #include "components/strings/grit/components_strings.h" |
14 #include "content/app/strings/grit/content_strings.h" | 13 #include "content/app/strings/grit/content_strings.h" |
15 #include "content/public/renderer/render_thread.h" | 14 #include "content/public/renderer/render_thread.h" |
16 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
17 #include "ui/base/resource/resource_bundle.h" | 16 #include "ui/base/resource/resource_bundle.h" |
18 #include "ui/base/webui/jstemplate_builder.h" | 17 #include "ui/base/webui/jstemplate_builder.h" |
19 | 18 |
20 // static | 19 // static |
(...skipping 30 matching lines...) Expand all Loading... |
51 | 50 |
52 blink::WebPluginParams params; | 51 blink::WebPluginParams params; |
53 // PluginPlaceholder will destroy itself when its WebViewPlugin is going away. | 52 // PluginPlaceholder will destroy itself when its WebViewPlugin is going away. |
54 plugins::PluginPlaceholder* plugin = | 53 plugins::PluginPlaceholder* plugin = |
55 new plugins::PluginPlaceholder(render_frame, params, html_data); | 54 new plugins::PluginPlaceholder(render_frame, params, html_data); |
56 | 55 |
57 content::RenderThread::Get()->Send(new ChromeViewHostMsg_CouldNotLoadPlugin( | 56 content::RenderThread::Get()->Send(new ChromeViewHostMsg_CouldNotLoadPlugin( |
58 plugin->routing_id(), file_path)); | 57 plugin->routing_id(), file_path)); |
59 return plugin; | 58 return plugin; |
60 } | 59 } |
OLD | NEW |