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

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: review comments 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/content_settings_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 frame, 773 frame,
774 params, 774 params,
775 plugin, 775 plugin,
776 identifier, 776 identifier,
777 group_name, 777 group_name,
778 IDR_CLICK_TO_PLAY_PLUGIN_HTML, 778 IDR_CLICK_TO_PLAY_PLUGIN_HTML,
779 l10n_util::GetStringFUTF16(IDS_PLUGIN_LOAD, group_name)); 779 l10n_util::GetStringFUTF16(IDS_PLUGIN_LOAD, group_name));
780 placeholder->set_allow_loading(true); 780 placeholder->set_allow_loading(true);
781 RenderThread::Get()->RecordAction( 781 RenderThread::Get()->RecordAction(
782 UserMetricsAction("Plugin_ClickToPlay")); 782 UserMetricsAction("Plugin_ClickToPlay"));
783 observer->DidBlockContentType(content_type, identifier); 783 observer->DidBlockContentType(content_type);
784 break; 784 break;
785 } 785 }
786 case ChromeViewHostMsg_GetPluginInfo_Status::kBlocked: { 786 case ChromeViewHostMsg_GetPluginInfo_Status::kBlocked: {
787 placeholder = ChromePluginPlaceholder::CreateBlockedPlugin( 787 placeholder = ChromePluginPlaceholder::CreateBlockedPlugin(
788 render_view, 788 render_view,
789 render_frame, 789 render_frame,
790 frame, 790 frame,
791 params, 791 params,
792 plugin, 792 plugin,
793 identifier, 793 identifier,
794 group_name, 794 group_name,
795 IDR_BLOCKED_PLUGIN_HTML, 795 IDR_BLOCKED_PLUGIN_HTML,
796 l10n_util::GetStringFUTF16(IDS_PLUGIN_BLOCKED, group_name)); 796 l10n_util::GetStringFUTF16(IDS_PLUGIN_BLOCKED, group_name));
797 placeholder->set_allow_loading(true); 797 placeholder->set_allow_loading(true);
798 RenderThread::Get()->RecordAction(UserMetricsAction("Plugin_Blocked")); 798 RenderThread::Get()->RecordAction(UserMetricsAction("Plugin_Blocked"));
799 observer->DidBlockContentType(content_type, identifier); 799 observer->DidBlockContentType(content_type);
800 break; 800 break;
801 } 801 }
802 } 802 }
803 } 803 }
804 placeholder->SetStatus(status); 804 placeholder->SetStatus(status);
805 return placeholder->plugin(); 805 return placeholder->plugin();
806 } 806 }
807 807
808 // For NaCl content handling plugins, the NaCl manifest is stored in an 808 // For NaCl content handling plugins, the NaCl manifest is stored in an
809 // additonal 'nacl' param associated with the MIME type. 809 // additonal 'nacl' param associated with the MIME type.
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 CommandLine* command_line = CommandLine::ForCurrentProcess(); 1393 CommandLine* command_line = CommandLine::ForCurrentProcess();
1394 return !command_line->HasSwitch(switches::kExtensionProcess); 1394 return !command_line->HasSwitch(switches::kExtensionProcess);
1395 } 1395 }
1396 1396
1397 blink::WebWorkerPermissionClientProxy* 1397 blink::WebWorkerPermissionClientProxy*
1398 ChromeContentRendererClient::CreateWorkerPermissionClientProxy( 1398 ChromeContentRendererClient::CreateWorkerPermissionClientProxy(
1399 content::RenderView* render_view, 1399 content::RenderView* render_view,
1400 blink::WebFrame* frame) { 1400 blink::WebFrame* frame) {
1401 return new WorkerPermissionClientProxy(render_view, frame); 1401 return new WorkerPermissionClientProxy(render_view, frame);
1402 } 1402 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/content_settings_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698