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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 #include "ppapi/shared_impl/ppapi_switches.h" | 183 #include "ppapi/shared_impl/ppapi_switches.h" |
184 #include "services/service_manager/public/cpp/connection.h" | 184 #include "services/service_manager/public/cpp/connection.h" |
185 #include "services/service_manager/public/cpp/interface_provider.h" | 185 #include "services/service_manager/public/cpp/interface_provider.h" |
186 #include "services/service_manager/public/cpp/interface_registry.h" | 186 #include "services/service_manager/public/cpp/interface_registry.h" |
187 #include "services/service_manager/runner/common/switches.h" | 187 #include "services/service_manager/runner/common/switches.h" |
188 #include "storage/browser/fileapi/sandbox_file_system_backend.h" | 188 #include "storage/browser/fileapi/sandbox_file_system_backend.h" |
189 #include "third_party/WebKit/public/public_features.h" | 189 #include "third_party/WebKit/public/public_features.h" |
190 #include "third_party/skia/include/core/SkBitmap.h" | 190 #include "third_party/skia/include/core/SkBitmap.h" |
191 #include "ui/base/ui_base_switches.h" | 191 #include "ui/base/ui_base_switches.h" |
192 #include "ui/display/display_switches.h" | 192 #include "ui/display/display_switches.h" |
193 #include "ui/events/event_switches.h" | |
194 #include "ui/gfx/switches.h" | 193 #include "ui/gfx/switches.h" |
195 #include "ui/gl/gl_switches.h" | 194 #include "ui/gl/gl_switches.h" |
196 #include "ui/gl/gpu_switching_manager.h" | 195 #include "ui/gl/gpu_switching_manager.h" |
197 #include "ui/native_theme/native_theme_switches.h" | 196 #include "ui/native_theme/native_theme_switches.h" |
198 | 197 |
199 #if defined(OS_ANDROID) | 198 #if defined(OS_ANDROID) |
200 #include "content/browser/android/child_process_launcher_android.h" | 199 #include "content/browser/android/child_process_launcher_android.h" |
201 #include "content/browser/screen_orientation/screen_orientation_message_filter_a
ndroid.h" | 200 #include "content/browser/screen_orientation/screen_orientation_message_filter_a
ndroid.h" |
202 #include "content/public/browser/android/java_interfaces.h" | 201 #include "content/public/browser/android/java_interfaces.h" |
203 #include "ipc/ipc_sync_channel.h" | 202 #include "ipc/ipc_sync_channel.h" |
(...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1746 switches::kReducedReferrerGranularity, | 1745 switches::kReducedReferrerGranularity, |
1747 switches::kReduceSecurityForTesting, | 1746 switches::kReduceSecurityForTesting, |
1748 switches::kRegisterPepperPlugins, | 1747 switches::kRegisterPepperPlugins, |
1749 switches::kRendererStartupDialog, | 1748 switches::kRendererStartupDialog, |
1750 switches::kRootLayerScrolls, | 1749 switches::kRootLayerScrolls, |
1751 switches::kShowPaintRects, | 1750 switches::kShowPaintRects, |
1752 switches::kSitePerProcess, | 1751 switches::kSitePerProcess, |
1753 switches::kStatsCollectionController, | 1752 switches::kStatsCollectionController, |
1754 switches::kTestType, | 1753 switches::kTestType, |
1755 switches::kTopDocumentIsolation, | 1754 switches::kTopDocumentIsolation, |
1756 switches::kTouchEvents, | 1755 switches::kTouchEventFeatureDetection, |
1757 switches::kTouchTextSelectionStrategy, | 1756 switches::kTouchTextSelectionStrategy, |
1758 switches::kTraceConfigFile, | 1757 switches::kTraceConfigFile, |
1759 switches::kTraceToConsole, | 1758 switches::kTraceToConsole, |
1760 switches::kUseFakeUIForMediaStream, | 1759 switches::kUseFakeUIForMediaStream, |
1761 // This flag needs to be propagated to the renderer process for | 1760 // This flag needs to be propagated to the renderer process for |
1762 // --in-process-webgl. | 1761 // --in-process-webgl. |
1763 switches::kUseGL, | 1762 switches::kUseGL, |
1764 switches::kUseGpuInTests, | 1763 switches::kUseGpuInTests, |
1765 switches::kUseMobileUserAgent, | 1764 switches::kUseMobileUserAgent, |
1766 switches::kUseRemoteCompositing, | 1765 switches::kUseRemoteCompositing, |
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3002 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3001 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
3003 | 3002 |
3004 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3003 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
3005 // Capture the error message in a crash key value. | 3004 // Capture the error message in a crash key value. |
3006 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3005 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
3007 bad_message::ReceivedBadMessage(render_process_id, | 3006 bad_message::ReceivedBadMessage(render_process_id, |
3008 bad_message::RPH_MOJO_PROCESS_ERROR); | 3007 bad_message::RPH_MOJO_PROCESS_ERROR); |
3009 } | 3008 } |
3010 | 3009 |
3011 } // namespace content | 3010 } // namespace content |
OLD | NEW |