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 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 const base::CommandLine& browser_cmd, | 1678 const base::CommandLine& browser_cmd, |
1679 base::CommandLine* renderer_cmd) { | 1679 base::CommandLine* renderer_cmd) { |
1680 // Propagate the following switches to the renderer command line (along | 1680 // Propagate the following switches to the renderer command line (along |
1681 // with any associated values) if present in the browser command line. | 1681 // with any associated values) if present in the browser command line. |
1682 static const char* const kSwitchNames[] = { | 1682 static const char* const kSwitchNames[] = { |
1683 switches::kAgcStartupMinVolume, | 1683 switches::kAgcStartupMinVolume, |
1684 switches::kAecRefinedAdaptiveFilter, | 1684 switches::kAecRefinedAdaptiveFilter, |
1685 switches::kAllowLoopbackInPeerConnection, | 1685 switches::kAllowLoopbackInPeerConnection, |
1686 switches::kAndroidFontsPath, | 1686 switches::kAndroidFontsPath, |
1687 switches::kAudioBufferSize, | 1687 switches::kAudioBufferSize, |
| 1688 switches::kAutoplayPolicy, |
1688 switches::kBlinkSettings, | 1689 switches::kBlinkSettings, |
1689 switches::kDefaultTileWidth, | 1690 switches::kDefaultTileWidth, |
1690 switches::kDefaultTileHeight, | 1691 switches::kDefaultTileHeight, |
1691 switches::kDisable2dCanvasImageChromium, | 1692 switches::kDisable2dCanvasImageChromium, |
1692 switches::kDisable3DAPIs, | 1693 switches::kDisable3DAPIs, |
1693 switches::kDisableAcceleratedJpegDecoding, | 1694 switches::kDisableAcceleratedJpegDecoding, |
1694 switches::kDisableAcceleratedVideoDecode, | 1695 switches::kDisableAcceleratedVideoDecode, |
1695 switches::kDisableBackgroundTimerThrottling, | 1696 switches::kDisableBackgroundTimerThrottling, |
1696 switches::kDisableBlinkFeatures, | 1697 switches::kDisableBlinkFeatures, |
1697 switches::kDisableBreakpad, | 1698 switches::kDisableBreakpad, |
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3076 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3077 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
3077 | 3078 |
3078 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3079 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
3079 // Capture the error message in a crash key value. | 3080 // Capture the error message in a crash key value. |
3080 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3081 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
3081 bad_message::ReceivedBadMessage(render_process_id, | 3082 bad_message::ReceivedBadMessage(render_process_id, |
3082 bad_message::RPH_MOJO_PROCESS_ERROR); | 3083 bad_message::RPH_MOJO_PROCESS_ERROR); |
3083 } | 3084 } |
3084 | 3085 |
3085 } // namespace content | 3086 } // namespace content |
OLD | NEW |