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

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

Issue 2043933002: Move IPC fuzzer switches and helpers from chrome/common to content/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 6 months 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
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 <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 #if defined(ENABLE_EXTENSIONS) 121 #if defined(ENABLE_EXTENSIONS)
122 #include "chrome/common/extensions/chrome_extensions_client.h" 122 #include "chrome/common/extensions/chrome_extensions_client.h"
123 #include "chrome/renderer/extensions/chrome_extensions_renderer_client.h" 123 #include "chrome/renderer/extensions/chrome_extensions_renderer_client.h"
124 #include "extensions/common/extension_urls.h" 124 #include "extensions/common/extension_urls.h"
125 #include "extensions/common/switches.h" 125 #include "extensions/common/switches.h"
126 #include "extensions/renderer/dispatcher.h" 126 #include "extensions/renderer/dispatcher.h"
127 #include "extensions/renderer/renderer_extension_registry.h" 127 #include "extensions/renderer/renderer_extension_registry.h"
128 #endif 128 #endif
129 129
130 #if defined(ENABLE_IPC_FUZZER) 130 #if defined(ENABLE_IPC_FUZZER)
131 #include "chrome/common/external_ipc_dumper.h" 131 #include "content/public/common/external_ipc_dumper.h"
132 #endif 132 #endif
133 133
134 #if defined(ENABLE_PLUGINS) 134 #if defined(ENABLE_PLUGINS)
135 #include "chrome/renderer/plugins/chrome_plugin_placeholder.h" 135 #include "chrome/renderer/plugins/chrome_plugin_placeholder.h"
136 #include "chrome/renderer/plugins/power_saver_info.h" 136 #include "chrome/renderer/plugins/power_saver_info.h"
137 #endif 137 #endif
138 138
139 #if defined(ENABLE_PRINTING) 139 #if defined(ENABLE_PRINTING)
140 #include "chrome/common/chrome_content_client.h" 140 #include "chrome/common/chrome_content_client.h"
141 #include "chrome/renderer/printing/chrome_print_web_view_helper_delegate.h" 141 #include "chrome/renderer/printing/chrome_print_web_view_helper_delegate.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 #if defined(OS_ANDROID) 405 #if defined(OS_ANDROID)
406 WebSecurityPolicy::registerURLSchemeAsAllowedForReferrer( 406 WebSecurityPolicy::registerURLSchemeAsAllowedForReferrer(
407 WebString::fromUTF8(chrome::kAndroidAppScheme)); 407 WebString::fromUTF8(chrome::kAndroidAppScheme));
408 #endif 408 #endif
409 409
410 #if defined(ENABLE_IPC_FUZZER) 410 #if defined(ENABLE_IPC_FUZZER)
411 if (command_line->HasSwitch(switches::kIpcDumpDirectory)) { 411 if (command_line->HasSwitch(switches::kIpcDumpDirectory)) {
412 base::FilePath dump_directory = 412 base::FilePath dump_directory =
413 command_line->GetSwitchValuePath(switches::kIpcDumpDirectory); 413 command_line->GetSwitchValuePath(switches::kIpcDumpDirectory);
414 IPC::ChannelProxy::OutgoingMessageFilter* filter = 414 IPC::ChannelProxy::OutgoingMessageFilter* filter =
415 LoadExternalIPCDumper(dump_directory); 415 content::LoadExternalIPCDumper(dump_directory);
416 thread->GetChannel()->set_outgoing_message_filter(filter); 416 thread->GetChannel()->set_outgoing_message_filter(filter);
417 } 417 }
418 #endif 418 #endif
419 419
420 // chrome-search: pages should not be accessible by bookmarklets 420 // chrome-search: pages should not be accessible by bookmarklets
421 // or javascript: URLs typed in the omnibox. 421 // or javascript: URLs typed in the omnibox.
422 WebSecurityPolicy::registerURLSchemeAsNotAllowingJavascriptURLs( 422 WebSecurityPolicy::registerURLSchemeAsNotAllowingJavascriptURLs(
423 chrome_search_scheme); 423 chrome_search_scheme);
424 424
425 // chrome-search: resources shouldn't trigger insecure content warnings. Note 425 // chrome-search: resources shouldn't trigger insecure content warnings. Note
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 // chrome.system.network.getNetworkInterfaces provides the same 1384 // chrome.system.network.getNetworkInterfaces provides the same
1385 // information. Also, the enforcement of sending and binding UDP is already done 1385 // information. Also, the enforcement of sending and binding UDP is already done
1386 // by chrome extension permission model. 1386 // by chrome extension permission model.
1387 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { 1387 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() {
1388 #if defined(ENABLE_EXTENSIONS) 1388 #if defined(ENABLE_EXTENSIONS)
1389 return !IsStandaloneExtensionProcess(); 1389 return !IsStandaloneExtensionProcess();
1390 #else 1390 #else
1391 return true; 1391 return true;
1392 #endif 1392 #endif
1393 } 1393 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698