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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 #include "services/shape_detection/public/interfaces/facedetection_provider.mojo
m.h" | 192 #include "services/shape_detection/public/interfaces/facedetection_provider.mojo
m.h" |
193 #include "services/shape_detection/public/interfaces/textdetection.mojom.h" | 193 #include "services/shape_detection/public/interfaces/textdetection.mojom.h" |
194 #include "storage/browser/fileapi/sandbox_file_system_backend.h" | 194 #include "storage/browser/fileapi/sandbox_file_system_backend.h" |
195 #include "third_party/WebKit/public/public_features.h" | 195 #include "third_party/WebKit/public/public_features.h" |
196 #include "third_party/skia/include/core/SkBitmap.h" | 196 #include "third_party/skia/include/core/SkBitmap.h" |
197 #include "ui/base/ui_base_switches.h" | 197 #include "ui/base/ui_base_switches.h" |
198 #include "ui/display/display_switches.h" | 198 #include "ui/display/display_switches.h" |
199 #include "ui/gfx/switches.h" | 199 #include "ui/gfx/switches.h" |
200 #include "ui/gl/gl_switches.h" | 200 #include "ui/gl/gl_switches.h" |
201 #include "ui/gl/gpu_switching_manager.h" | 201 #include "ui/gl/gpu_switching_manager.h" |
202 #include "ui/native_theme/native_theme_switches.h" | 202 #include "ui/native_theme/native_theme_features.h" |
203 | 203 |
204 #if defined(OS_ANDROID) | 204 #if defined(OS_ANDROID) |
205 #include "content/public/browser/android/java_interfaces.h" | 205 #include "content/public/browser/android/java_interfaces.h" |
206 #include "ipc/ipc_sync_channel.h" | 206 #include "ipc/ipc_sync_channel.h" |
207 #include "media/audio/android/audio_manager_android.h" | 207 #include "media/audio/android/audio_manager_android.h" |
208 #endif | 208 #endif |
209 | 209 |
210 #if defined(OS_WIN) | 210 #if defined(OS_WIN) |
211 #include "base/win/scoped_com_initializer.h" | 211 #include "base/win/scoped_com_initializer.h" |
212 #include "base/win/windows_version.h" | 212 #include "base/win/windows_version.h" |
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1709 switches::kDisableGpuCompositing, | 1709 switches::kDisableGpuCompositing, |
1710 switches::kDisableGpuMemoryBufferVideoFrames, | 1710 switches::kDisableGpuMemoryBufferVideoFrames, |
1711 switches::kDisableGpuVsync, | 1711 switches::kDisableGpuVsync, |
1712 switches::kDisableLowResTiling, | 1712 switches::kDisableLowResTiling, |
1713 switches::kDisableHistogramCustomizer, | 1713 switches::kDisableHistogramCustomizer, |
1714 switches::kDisableLCDText, | 1714 switches::kDisableLCDText, |
1715 switches::kDisableLocalStorage, | 1715 switches::kDisableLocalStorage, |
1716 switches::kDisableLogging, | 1716 switches::kDisableLogging, |
1717 switches::kDisableMediaSuspend, | 1717 switches::kDisableMediaSuspend, |
1718 switches::kDisableNotifications, | 1718 switches::kDisableNotifications, |
1719 switches::kDisableOverlayScrollbar, | |
1720 switches::kDisablePepper3DImageChromium, | 1719 switches::kDisablePepper3DImageChromium, |
1721 switches::kDisablePermissionsAPI, | 1720 switches::kDisablePermissionsAPI, |
1722 switches::kDisablePresentationAPI, | 1721 switches::kDisablePresentationAPI, |
1723 switches::kDisablePinch, | 1722 switches::kDisablePinch, |
1724 switches::kDisableRGBA4444Textures, | 1723 switches::kDisableRGBA4444Textures, |
1725 switches::kDisableRTCSmoothnessAlgorithm, | 1724 switches::kDisableRTCSmoothnessAlgorithm, |
1726 switches::kDisableSeccompFilterSandbox, | 1725 switches::kDisableSeccompFilterSandbox, |
1727 switches::kDisableSharedWorkers, | 1726 switches::kDisableSharedWorkers, |
1728 switches::kDisableSlimmingPaintInvalidation, | 1727 switches::kDisableSlimmingPaintInvalidation, |
1729 switches::kDisableSmoothScrolling, | 1728 switches::kDisableSmoothScrolling, |
(...skipping 18 matching lines...) Expand all Loading... |
1748 switches::kEnableGpuClientTracing, | 1747 switches::kEnableGpuClientTracing, |
1749 switches::kEnableGpuMemoryBufferVideoFrames, | 1748 switches::kEnableGpuMemoryBufferVideoFrames, |
1750 switches::kEnableGPUServiceLogging, | 1749 switches::kEnableGPUServiceLogging, |
1751 switches::kEnableLowResTiling, | 1750 switches::kEnableLowResTiling, |
1752 switches::kEnableMediaSuspend, | 1751 switches::kEnableMediaSuspend, |
1753 switches::kEnableInbandTextTracks, | 1752 switches::kEnableInbandTextTracks, |
1754 switches::kEnableLCDText, | 1753 switches::kEnableLCDText, |
1755 switches::kEnableLogging, | 1754 switches::kEnableLogging, |
1756 switches::kEnableNetworkInformation, | 1755 switches::kEnableNetworkInformation, |
1757 switches::kEnableNetworkService, | 1756 switches::kEnableNetworkService, |
1758 switches::kEnableOverlayScrollbar, | |
1759 switches::kEnableNewVp9CodecString, | 1757 switches::kEnableNewVp9CodecString, |
1760 switches::kEnablePinch, | 1758 switches::kEnablePinch, |
1761 switches::kEnablePluginPlaceholderTesting, | 1759 switches::kEnablePluginPlaceholderTesting, |
1762 switches::kEnablePreciseMemoryInfo, | 1760 switches::kEnablePreciseMemoryInfo, |
1763 switches::kEnablePrintBrowser, | 1761 switches::kEnablePrintBrowser, |
1764 switches::kEnablePreferCompositingToLCDText, | 1762 switches::kEnablePreferCompositingToLCDText, |
1765 switches::kEnableRGBA4444Textures, | 1763 switches::kEnableRGBA4444Textures, |
1766 switches::kEnableSkiaBenchmarking, | 1764 switches::kEnableSkiaBenchmarking, |
1767 switches::kEnableSlimmingPaintV2, | 1765 switches::kEnableSlimmingPaintV2, |
1768 switches::kEnableSlimmingPaintInvalidation, | 1766 switches::kEnableSlimmingPaintInvalidation, |
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3087 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3085 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
3088 | 3086 |
3089 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3087 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
3090 // Capture the error message in a crash key value. | 3088 // Capture the error message in a crash key value. |
3091 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3089 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
3092 bad_message::ReceivedBadMessage(render_process_id, | 3090 bad_message::ReceivedBadMessage(render_process_id, |
3093 bad_message::RPH_MOJO_PROCESS_ERROR); | 3091 bad_message::RPH_MOJO_PROCESS_ERROR); |
3094 } | 3092 } |
3095 | 3093 |
3096 } // namespace content | 3094 } // namespace content |
OLD | NEW |