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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/crash_logging.h" | 10 #include "base/debug/crash_logging.h" |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 | 794 |
795 return render_frame->CreatePlugin(frame, info, params, | 795 return render_frame->CreatePlugin(frame, info, params, |
796 std::move(throttler)); | 796 std::move(throttler)); |
797 } | 797 } |
798 case ChromeViewHostMsg_GetPluginInfo_Status::kNPAPINotSupported: { | 798 case ChromeViewHostMsg_GetPluginInfo_Status::kNPAPINotSupported: { |
799 RenderThread::Get()->RecordAction( | 799 RenderThread::Get()->RecordAction( |
800 UserMetricsAction("Plugin_NPAPINotSupported")); | 800 UserMetricsAction("Plugin_NPAPINotSupported")); |
801 placeholder = create_blocked_plugin( | 801 placeholder = create_blocked_plugin( |
802 IDR_BLOCKED_PLUGIN_HTML, | 802 IDR_BLOCKED_PLUGIN_HTML, |
803 l10n_util::GetStringUTF16(IDS_PLUGIN_NOT_SUPPORTED_METRO)); | 803 l10n_util::GetStringUTF16(IDS_PLUGIN_NOT_SUPPORTED_METRO)); |
804 render_frame->Send(new ChromeViewHostMsg_NPAPINotSupported( | |
805 render_frame->GetRoutingID(), identifier)); | |
806 break; | 804 break; |
807 } | 805 } |
808 case ChromeViewHostMsg_GetPluginInfo_Status::kDisabled: { | 806 case ChromeViewHostMsg_GetPluginInfo_Status::kDisabled: { |
809 PluginUMAReporter::GetInstance()->ReportPluginDisabled(orig_mime_type, | 807 PluginUMAReporter::GetInstance()->ReportPluginDisabled(orig_mime_type, |
810 url); | 808 url); |
811 placeholder = create_blocked_plugin( | 809 placeholder = create_blocked_plugin( |
812 IDR_DISABLED_PLUGIN_HTML, | 810 IDR_DISABLED_PLUGIN_HTML, |
813 l10n_util::GetStringFUTF16(IDS_PLUGIN_DISABLED, group_name)); | 811 l10n_util::GetStringFUTF16(IDS_PLUGIN_DISABLED, group_name)); |
814 break; | 812 break; |
815 } | 813 } |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 // chrome.system.network.getNetworkInterfaces provides the same | 1412 // chrome.system.network.getNetworkInterfaces provides the same |
1415 // information. Also, the enforcement of sending and binding UDP is already done | 1413 // information. Also, the enforcement of sending and binding UDP is already done |
1416 // by chrome extension permission model. | 1414 // by chrome extension permission model. |
1417 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { | 1415 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { |
1418 #if defined(ENABLE_EXTENSIONS) | 1416 #if defined(ENABLE_EXTENSIONS) |
1419 return !IsStandaloneExtensionProcess(); | 1417 return !IsStandaloneExtensionProcess(); |
1420 #else | 1418 #else |
1421 return true; | 1419 return true; |
1422 #endif | 1420 #endif |
1423 } | 1421 } |
OLD | NEW |