OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
7 | 7 |
8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 // Propagate the following switches to the renderer command line (along | 1340 // Propagate the following switches to the renderer command line (along |
1341 // with any associated values) if present in the browser command line. | 1341 // with any associated values) if present in the browser command line. |
1342 static const char* const kSwitchNames[] = { | 1342 static const char* const kSwitchNames[] = { |
1343 switches::kAgcStartupMinVolume, | 1343 switches::kAgcStartupMinVolume, |
1344 switches::kAecRefinedAdaptiveFilter, | 1344 switches::kAecRefinedAdaptiveFilter, |
1345 switches::kAllowLoopbackInPeerConnection, | 1345 switches::kAllowLoopbackInPeerConnection, |
1346 switches::kAndroidFontsPath, | 1346 switches::kAndroidFontsPath, |
1347 switches::kAudioBufferSize, | 1347 switches::kAudioBufferSize, |
1348 switches::kBlinkPlatformLogChannels, | 1348 switches::kBlinkPlatformLogChannels, |
1349 switches::kBlinkSettings, | 1349 switches::kBlinkSettings, |
1350 switches::kDefaultTileWidth, | |
1351 switches::kDefaultTileHeight, | |
1352 switches::kDisable2dCanvasImageChromium, | 1350 switches::kDisable2dCanvasImageChromium, |
1353 switches::kDisable3DAPIs, | 1351 switches::kDisable3DAPIs, |
1354 switches::kDisableAcceleratedJpegDecoding, | 1352 switches::kDisableAcceleratedJpegDecoding, |
1355 switches::kDisableAcceleratedVideoDecode, | 1353 switches::kDisableAcceleratedVideoDecode, |
1356 switches::kDisableBlinkFeatures, | 1354 switches::kDisableBlinkFeatures, |
1357 switches::kDisableBreakpad, | 1355 switches::kDisableBreakpad, |
1358 switches::kDisablePreferCompositingToLCDText, | 1356 switches::kDisablePreferCompositingToLCDText, |
1359 switches::kDisableDatabases, | 1357 switches::kDisableDatabases, |
1360 switches::kDisableDisplayList2dCanvas, | 1358 switches::kDisableDisplayList2dCanvas, |
1361 switches::kDisableDistanceFieldText, | 1359 switches::kDisableDistanceFieldText, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 switches::kExplicitlyAllowedPorts, | 1433 switches::kExplicitlyAllowedPorts, |
1436 switches::kForceDeviceScaleFactor, | 1434 switches::kForceDeviceScaleFactor, |
1437 switches::kForceDisplayList2dCanvas, | 1435 switches::kForceDisplayList2dCanvas, |
1438 switches::kForceOverlayFullscreenVideo, | 1436 switches::kForceOverlayFullscreenVideo, |
1439 switches::kFullMemoryCrashReport, | 1437 switches::kFullMemoryCrashReport, |
1440 switches::kInertVisualViewport, | 1438 switches::kInertVisualViewport, |
1441 switches::kIPCConnectionTimeout, | 1439 switches::kIPCConnectionTimeout, |
1442 switches::kJavaScriptFlags, | 1440 switches::kJavaScriptFlags, |
1443 switches::kLoggingLevel, | 1441 switches::kLoggingLevel, |
1444 switches::kMainFrameResizesAreOrientationChanges, | 1442 switches::kMainFrameResizesAreOrientationChanges, |
1445 switches::kMaxUntiledLayerWidth, | |
1446 switches::kMaxUntiledLayerHeight, | |
1447 switches::kMemoryMetrics, | 1443 switches::kMemoryMetrics, |
1448 switches::kMojoLocalStorage, | 1444 switches::kMojoLocalStorage, |
1449 switches::kNoReferrers, | 1445 switches::kNoReferrers, |
1450 switches::kNoSandbox, | 1446 switches::kNoSandbox, |
1451 switches::kOverridePluginPowerSaverForTesting, | 1447 switches::kOverridePluginPowerSaverForTesting, |
1452 switches::kPassiveListenersDefault, | 1448 switches::kPassiveListenersDefault, |
1453 switches::kPpapiInProcess, | 1449 switches::kPpapiInProcess, |
1454 switches::kProfilerTiming, | 1450 switches::kProfilerTiming, |
1455 switches::kReducedReferrerGranularity, | 1451 switches::kReducedReferrerGranularity, |
1456 switches::kReduceSecurityForTesting, | 1452 switches::kReduceSecurityForTesting, |
(...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2814 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2810 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
2815 | 2811 |
2816 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2812 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
2817 // enough information here so that we can determine what the bad message was. | 2813 // enough information here so that we can determine what the bad message was. |
2818 base::debug::Alias(&error); | 2814 base::debug::Alias(&error); |
2819 bad_message::ReceivedBadMessage(process.get(), | 2815 bad_message::ReceivedBadMessage(process.get(), |
2820 bad_message::RPH_MOJO_PROCESS_ERROR); | 2816 bad_message::RPH_MOJO_PROCESS_ERROR); |
2821 } | 2817 } |
2822 | 2818 |
2823 } // namespace content | 2819 } // namespace content |
OLD | NEW |