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 "chrome/renderer/chrome_content_renderer_client.h" | 5 #include "chrome/renderer/chrome_content_renderer_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 break; | 543 break; |
544 } | 544 } |
545 | 545 |
546 return render_view->CreatePlugin(frame, plugin, params); | 546 return render_view->CreatePlugin(frame, plugin, params); |
547 } | 547 } |
548 case ChromeViewHostMsg_GetPluginInfo_Status::kNPAPINotSupported: { | 548 case ChromeViewHostMsg_GetPluginInfo_Status::kNPAPINotSupported: { |
549 RenderThread::Get()->RecordUserMetrics("Plugin_NPAPINotSupported"); | 549 RenderThread::Get()->RecordUserMetrics("Plugin_NPAPINotSupported"); |
550 placeholder = PluginPlaceholder::CreateBlockedPlugin( | 550 placeholder = PluginPlaceholder::CreateBlockedPlugin( |
551 render_view, frame, params, plugin, identifier, group_name, | 551 render_view, frame, params, plugin, identifier, group_name, |
552 IDR_BLOCKED_PLUGIN_HTML, | 552 IDR_BLOCKED_PLUGIN_HTML, |
553 l10n_util::GetStringUTF16(IDS_PLUGIN_NOT_SUPPORTED)); | 553 l10n_util::GetStringUTF16(IDS_PLUGIN_NOT_SUPPORTED_METRO)); |
554 render_view->Send(new ChromeViewHostMsg_NPAPINotSupported( | 554 render_view->Send(new ChromeViewHostMsg_NPAPINotSupported( |
555 render_view->GetRoutingID(), identifier)); | 555 render_view->GetRoutingID(), identifier)); |
556 break; | 556 break; |
557 } | 557 } |
558 case ChromeViewHostMsg_GetPluginInfo_Status::kDisabled: { | 558 case ChromeViewHostMsg_GetPluginInfo_Status::kDisabled: { |
559 placeholder = PluginPlaceholder::CreateBlockedPlugin( | 559 placeholder = PluginPlaceholder::CreateBlockedPlugin( |
560 render_view, frame, params, plugin, identifier, group_name, | 560 render_view, frame, params, plugin, identifier, group_name, |
561 IDR_DISABLED_PLUGIN_HTML, | 561 IDR_DISABLED_PLUGIN_HTML, |
562 l10n_util::GetStringFUTF16(IDS_PLUGIN_DISABLED, group_name)); | 562 l10n_util::GetStringFUTF16(IDS_PLUGIN_DISABLED, group_name)); |
563 break; | 563 break; |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 bool ChromeContentRendererClient::IsOtherExtensionWithWebRequestInstalled() { | 1018 bool ChromeContentRendererClient::IsOtherExtensionWithWebRequestInstalled() { |
1019 return extension_dispatcher_->IsOtherExtensionWithWebRequestInstalled(); | 1019 return extension_dispatcher_->IsOtherExtensionWithWebRequestInstalled(); |
1020 } | 1020 } |
1021 | 1021 |
1022 void ChromeContentRendererClient::RegisterPPAPIInterfaceFactories( | 1022 void ChromeContentRendererClient::RegisterPPAPIInterfaceFactories( |
1023 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { | 1023 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { |
1024 factory_manager->RegisterFactory(ChromePPAPIInterfaceFactory); | 1024 factory_manager->RegisterFactory(ChromePPAPIInterfaceFactory); |
1025 } | 1025 } |
1026 | 1026 |
1027 } // namespace chrome | 1027 } // namespace chrome |
OLD | NEW |