Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 106713004: Remove kEnableResourceContentSettings and all the code that uses it since it's been behind a flag f… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/crash_logging.h" 8 #include "base/debug/crash_logging.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 frame, 771 frame,
772 params, 772 params,
773 plugin, 773 plugin,
774 identifier, 774 identifier,
775 group_name, 775 group_name,
776 IDR_CLICK_TO_PLAY_PLUGIN_HTML, 776 IDR_CLICK_TO_PLAY_PLUGIN_HTML,
777 l10n_util::GetStringFUTF16(IDS_PLUGIN_LOAD, group_name)); 777 l10n_util::GetStringFUTF16(IDS_PLUGIN_LOAD, group_name));
778 placeholder->set_allow_loading(true); 778 placeholder->set_allow_loading(true);
779 RenderThread::Get()->RecordAction( 779 RenderThread::Get()->RecordAction(
780 UserMetricsAction("Plugin_ClickToPlay")); 780 UserMetricsAction("Plugin_ClickToPlay"));
781 observer->DidBlockContentType(content_type, identifier); 781 observer->DidBlockContentType(content_type);
782 break; 782 break;
783 } 783 }
784 case ChromeViewHostMsg_GetPluginInfo_Status::kBlocked: { 784 case ChromeViewHostMsg_GetPluginInfo_Status::kBlocked: {
785 placeholder = ChromePluginPlaceholder::CreateBlockedPlugin( 785 placeholder = ChromePluginPlaceholder::CreateBlockedPlugin(
786 render_view, 786 render_view,
787 render_frame, 787 render_frame,
788 frame, 788 frame,
789 params, 789 params,
790 plugin, 790 plugin,
791 identifier, 791 identifier,
792 group_name, 792 group_name,
793 IDR_BLOCKED_PLUGIN_HTML, 793 IDR_BLOCKED_PLUGIN_HTML,
794 l10n_util::GetStringFUTF16(IDS_PLUGIN_BLOCKED, group_name)); 794 l10n_util::GetStringFUTF16(IDS_PLUGIN_BLOCKED, group_name));
795 placeholder->set_allow_loading(true); 795 placeholder->set_allow_loading(true);
796 RenderThread::Get()->RecordAction(UserMetricsAction("Plugin_Blocked")); 796 RenderThread::Get()->RecordAction(UserMetricsAction("Plugin_Blocked"));
797 observer->DidBlockContentType(content_type, identifier); 797 observer->DidBlockContentType(content_type);
798 break; 798 break;
799 } 799 }
800 } 800 }
801 } 801 }
802 placeholder->SetStatus(status); 802 placeholder->SetStatus(status);
803 return placeholder->plugin(); 803 return placeholder->plugin();
804 } 804 }
805 805
806 // For NaCl content handling plugins, the NaCl manifest is stored in an 806 // For NaCl content handling plugins, the NaCl manifest is stored in an
807 // additonal 'nacl' param associated with the MIME type. 807 // additonal 'nacl' param associated with the MIME type.
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 CommandLine* command_line = CommandLine::ForCurrentProcess(); 1391 CommandLine* command_line = CommandLine::ForCurrentProcess();
1392 return !command_line->HasSwitch(switches::kExtensionProcess); 1392 return !command_line->HasSwitch(switches::kExtensionProcess);
1393 } 1393 }
1394 1394
1395 blink::WebWorkerPermissionClientProxy* 1395 blink::WebWorkerPermissionClientProxy*
1396 ChromeContentRendererClient::CreateWorkerPermissionClientProxy( 1396 ChromeContentRendererClient::CreateWorkerPermissionClientProxy(
1397 content::RenderView* render_view, 1397 content::RenderView* render_view,
1398 blink::WebFrame* frame) { 1398 blink::WebFrame* frame) {
1399 return new WorkerPermissionClientProxy(render_view, frame); 1399 return new WorkerPermissionClientProxy(render_view, frame);
1400 } 1400 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698