| 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> |
| 11 #include <limits> | 11 #include <limits> |
| 12 #include <set> |
| 12 #include <utility> | 13 #include <utility> |
| 13 #include <vector> | 14 #include <vector> |
| 14 | 15 |
| 15 #include "base/base_switches.h" | 16 #include "base/base_switches.h" |
| 16 #include "base/bind.h" | 17 #include "base/bind.h" |
| 17 #include "base/bind_helpers.h" | 18 #include "base/bind_helpers.h" |
| 18 #include "base/callback.h" | 19 #include "base/callback.h" |
| 19 #include "base/command_line.h" | 20 #include "base/command_line.h" |
| 20 #include "base/debug/crash_logging.h" | 21 #include "base/debug/crash_logging.h" |
| 21 #include "base/debug/dump_without_crashing.h" | 22 #include "base/debug/dump_without_crashing.h" |
| (...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1711 switches::kDisableDisplayList2dCanvas, | 1712 switches::kDisableDisplayList2dCanvas, |
| 1712 switches::kDisableDistanceFieldText, | 1713 switches::kDisableDistanceFieldText, |
| 1713 switches::kDisableFileSystem, | 1714 switches::kDisableFileSystem, |
| 1714 switches::kDisableGestureRequirementForMediaPlayback, | 1715 switches::kDisableGestureRequirementForMediaPlayback, |
| 1715 switches::kDisableGestureRequirementForPresentation, | 1716 switches::kDisableGestureRequirementForPresentation, |
| 1716 switches::kDisableGpuCompositing, | 1717 switches::kDisableGpuCompositing, |
| 1717 switches::kDisableGpuMemoryBufferVideoFrames, | 1718 switches::kDisableGpuMemoryBufferVideoFrames, |
| 1718 switches::kDisableGpuVsync, | 1719 switches::kDisableGpuVsync, |
| 1719 switches::kDisableLowResTiling, | 1720 switches::kDisableLowResTiling, |
| 1720 switches::kDisableHistogramCustomizer, | 1721 switches::kDisableHistogramCustomizer, |
| 1721 switches::kDisableIconNtp, | |
| 1722 switches::kDisableLCDText, | 1722 switches::kDisableLCDText, |
| 1723 switches::kDisableLocalStorage, | 1723 switches::kDisableLocalStorage, |
| 1724 switches::kDisableLogging, | 1724 switches::kDisableLogging, |
| 1725 switches::kDisableMediaSuspend, | 1725 switches::kDisableMediaSuspend, |
| 1726 switches::kDisableNotifications, | 1726 switches::kDisableNotifications, |
| 1727 switches::kDisableOverlayScrollbar, | 1727 switches::kDisableOverlayScrollbar, |
| 1728 switches::kDisablePepper3DImageChromium, | 1728 switches::kDisablePepper3DImageChromium, |
| 1729 switches::kDisablePermissionsAPI, | 1729 switches::kDisablePermissionsAPI, |
| 1730 switches::kDisablePresentationAPI, | 1730 switches::kDisablePresentationAPI, |
| 1731 switches::kDisablePinch, | 1731 switches::kDisablePinch, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1748 switches::kEnableColorCorrectRenderingDefaultMode, | 1748 switches::kEnableColorCorrectRenderingDefaultMode, |
| 1749 switches::kEnableDisplayList2dCanvas, | 1749 switches::kEnableDisplayList2dCanvas, |
| 1750 switches::kEnableDistanceFieldText, | 1750 switches::kEnableDistanceFieldText, |
| 1751 switches::kEnableExperimentalCanvasFeatures, | 1751 switches::kEnableExperimentalCanvasFeatures, |
| 1752 switches::kEnableExperimentalWebPlatformFeatures, | 1752 switches::kEnableExperimentalWebPlatformFeatures, |
| 1753 switches::kEnableHeapProfiling, | 1753 switches::kEnableHeapProfiling, |
| 1754 switches::kEnableGPUClientLogging, | 1754 switches::kEnableGPUClientLogging, |
| 1755 switches::kEnableGpuClientTracing, | 1755 switches::kEnableGpuClientTracing, |
| 1756 switches::kEnableGpuMemoryBufferVideoFrames, | 1756 switches::kEnableGpuMemoryBufferVideoFrames, |
| 1757 switches::kEnableGPUServiceLogging, | 1757 switches::kEnableGPUServiceLogging, |
| 1758 switches::kEnableIconNtp, | |
| 1759 switches::kEnableLowResTiling, | 1758 switches::kEnableLowResTiling, |
| 1760 switches::kEnableMediaSuspend, | 1759 switches::kEnableMediaSuspend, |
| 1761 switches::kEnableInbandTextTracks, | 1760 switches::kEnableInbandTextTracks, |
| 1762 switches::kEnableLCDText, | 1761 switches::kEnableLCDText, |
| 1763 switches::kEnableLogging, | 1762 switches::kEnableLogging, |
| 1764 switches::kEnableNetworkInformation, | 1763 switches::kEnableNetworkInformation, |
| 1765 switches::kEnableOverlayScrollbar, | 1764 switches::kEnableOverlayScrollbar, |
| 1766 switches::kEnablePinch, | 1765 switches::kEnablePinch, |
| 1767 switches::kEnablePluginPlaceholderTesting, | 1766 switches::kEnablePluginPlaceholderTesting, |
| 1768 switches::kEnablePreciseMemoryInfo, | 1767 switches::kEnablePreciseMemoryInfo, |
| (...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3073 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3072 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 3074 | 3073 |
| 3075 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3074 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
| 3076 // Capture the error message in a crash key value. | 3075 // Capture the error message in a crash key value. |
| 3077 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3076 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
| 3078 bad_message::ReceivedBadMessage(render_process_id, | 3077 bad_message::ReceivedBadMessage(render_process_id, |
| 3079 bad_message::RPH_MOJO_PROCESS_ERROR); | 3078 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 3080 } | 3079 } |
| 3081 | 3080 |
| 3082 } // namespace content | 3081 } // namespace content |
| OLD | NEW |