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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 break; | 536 break; |
537 } | 537 } |
538 | 538 |
539 return render_view->CreatePlugin(frame, plugin, params); | 539 return render_view->CreatePlugin(frame, plugin, params); |
540 } | 540 } |
541 case ChromeViewHostMsg_GetPluginInfo_Status::kNPAPINotSupported: { | 541 case ChromeViewHostMsg_GetPluginInfo_Status::kNPAPINotSupported: { |
542 RenderThread::Get()->RecordUserMetrics("Plugin_NPAPINotSupported"); | 542 RenderThread::Get()->RecordUserMetrics("Plugin_NPAPINotSupported"); |
543 placeholder = PluginPlaceholder::CreateBlockedPlugin( | 543 placeholder = PluginPlaceholder::CreateBlockedPlugin( |
544 render_view, frame, params, plugin, identifier, group_name, | 544 render_view, frame, params, plugin, identifier, group_name, |
545 IDR_BLOCKED_PLUGIN_HTML, | 545 IDR_BLOCKED_PLUGIN_HTML, |
546 l10n_util::GetStringUTF16(IDS_PLUGIN_NOT_SUPPORTED)); | 546 l10n_util::GetStringUTF16(IDS_PLUGIN_NOT_SUPPORTED_METRO)); |
547 render_view->Send(new ChromeViewHostMsg_NPAPINotSupported( | 547 render_view->Send(new ChromeViewHostMsg_NPAPINotSupported( |
548 render_view->GetRoutingID(), identifier)); | 548 render_view->GetRoutingID(), identifier)); |
549 break; | 549 break; |
550 } | 550 } |
551 case ChromeViewHostMsg_GetPluginInfo_Status::kDisabled: { | 551 case ChromeViewHostMsg_GetPluginInfo_Status::kDisabled: { |
552 placeholder = PluginPlaceholder::CreateBlockedPlugin( | 552 placeholder = PluginPlaceholder::CreateBlockedPlugin( |
553 render_view, frame, params, plugin, identifier, group_name, | 553 render_view, frame, params, plugin, identifier, group_name, |
554 IDR_DISABLED_PLUGIN_HTML, | 554 IDR_DISABLED_PLUGIN_HTML, |
555 l10n_util::GetStringFUTF16(IDS_PLUGIN_DISABLED, group_name)); | 555 l10n_util::GetStringFUTF16(IDS_PLUGIN_DISABLED, group_name)); |
556 break; | 556 break; |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 bool ChromeContentRendererClient::IsOtherExtensionWithWebRequestInstalled() { | 1009 bool ChromeContentRendererClient::IsOtherExtensionWithWebRequestInstalled() { |
1010 return extension_dispatcher_->IsOtherExtensionWithWebRequestInstalled(); | 1010 return extension_dispatcher_->IsOtherExtensionWithWebRequestInstalled(); |
1011 } | 1011 } |
1012 | 1012 |
1013 void ChromeContentRendererClient::RegisterPPAPIInterfaceFactories( | 1013 void ChromeContentRendererClient::RegisterPPAPIInterfaceFactories( |
1014 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { | 1014 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { |
1015 factory_manager->RegisterFactory(ChromePPAPIInterfaceFactory); | 1015 factory_manager->RegisterFactory(ChromePPAPIInterfaceFactory); |
1016 } | 1016 } |
1017 | 1017 |
1018 } // namespace chrome | 1018 } // namespace chrome |
OLD | NEW |