| 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 26 matching lines...) Expand all Loading... |
| 37 #include "base/strings/stringprintf.h" | 37 #include "base/strings/stringprintf.h" |
| 38 #include "base/supports_user_data.h" | 38 #include "base/supports_user_data.h" |
| 39 #include "base/sys_info.h" | 39 #include "base/sys_info.h" |
| 40 #include "base/threading/thread.h" | 40 #include "base/threading/thread.h" |
| 41 #include "base/threading/thread_restrictions.h" | 41 #include "base/threading/thread_restrictions.h" |
| 42 #include "base/threading/thread_task_runner_handle.h" | 42 #include "base/threading/thread_task_runner_handle.h" |
| 43 #include "base/trace_event/trace_event.h" | 43 #include "base/trace_event/trace_event.h" |
| 44 #include "base/tracked_objects.h" | 44 #include "base/tracked_objects.h" |
| 45 #include "build/build_config.h" | 45 #include "build/build_config.h" |
| 46 #include "cc/base/switches.h" | 46 #include "cc/base/switches.h" |
| 47 #include "components/mus/common/switches.h" |
| 47 #include "components/scheduler/common/scheduler_switches.h" | 48 #include "components/scheduler/common/scheduler_switches.h" |
| 48 #include "components/tracing/common/tracing_switches.h" | 49 #include "components/tracing/common/tracing_switches.h" |
| 49 #include "content/browser/appcache/appcache_dispatcher_host.h" | 50 #include "content/browser/appcache/appcache_dispatcher_host.h" |
| 50 #include "content/browser/appcache/chrome_appcache_service.h" | 51 #include "content/browser/appcache/chrome_appcache_service.h" |
| 51 #include "content/browser/background_sync/background_sync_service_impl.h" | 52 #include "content/browser/background_sync/background_sync_service_impl.h" |
| 52 #include "content/browser/bad_message.h" | 53 #include "content/browser/bad_message.h" |
| 53 #include "content/browser/blob_storage/blob_dispatcher_host.h" | 54 #include "content/browser/blob_storage/blob_dispatcher_host.h" |
| 54 #include "content/browser/blob_storage/chrome_blob_storage_context.h" | 55 #include "content/browser/blob_storage/chrome_blob_storage_context.h" |
| 55 #include "content/browser/browser_child_process_host_impl.h" | 56 #include "content/browser/browser_child_process_host_impl.h" |
| 56 #include "content/browser/browser_main.h" | 57 #include "content/browser/browser_main.h" |
| (...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1432 switches::kEnableWebGLDraftExtensions, | 1433 switches::kEnableWebGLDraftExtensions, |
| 1433 switches::kEnableWebGLImageChromium, | 1434 switches::kEnableWebGLImageChromium, |
| 1434 switches::kEnableWebVR, | 1435 switches::kEnableWebVR, |
| 1435 switches::kExplicitlyAllowedPorts, | 1436 switches::kExplicitlyAllowedPorts, |
| 1436 switches::kForceDeviceScaleFactor, | 1437 switches::kForceDeviceScaleFactor, |
| 1437 switches::kForceDisplayList2dCanvas, | 1438 switches::kForceDisplayList2dCanvas, |
| 1438 switches::kForceOverlayFullscreenVideo, | 1439 switches::kForceOverlayFullscreenVideo, |
| 1439 switches::kFullMemoryCrashReport, | 1440 switches::kFullMemoryCrashReport, |
| 1440 switches::kInertVisualViewport, | 1441 switches::kInertVisualViewport, |
| 1441 switches::kIPCConnectionTimeout, | 1442 switches::kIPCConnectionTimeout, |
| 1443 switches::kIsRunningInMojoShell, |
| 1442 switches::kJavaScriptFlags, | 1444 switches::kJavaScriptFlags, |
| 1443 switches::kLoggingLevel, | 1445 switches::kLoggingLevel, |
| 1444 switches::kMainFrameResizesAreOrientationChanges, | 1446 switches::kMainFrameResizesAreOrientationChanges, |
| 1445 switches::kMaxUntiledLayerWidth, | 1447 switches::kMaxUntiledLayerWidth, |
| 1446 switches::kMaxUntiledLayerHeight, | 1448 switches::kMaxUntiledLayerHeight, |
| 1447 switches::kMemoryMetrics, | 1449 switches::kMemoryMetrics, |
| 1448 switches::kMojoLocalStorage, | 1450 switches::kMojoLocalStorage, |
| 1449 switches::kNoReferrers, | 1451 switches::kNoReferrers, |
| 1450 switches::kNoSandbox, | 1452 switches::kNoSandbox, |
| 1451 switches::kOverridePluginPowerSaverForTesting, | 1453 switches::kOverridePluginPowerSaverForTesting, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1493 cc::switches::kShowPropertyChangedRects, | 1495 cc::switches::kShowPropertyChangedRects, |
| 1494 cc::switches::kShowReplicaScreenSpaceRects, | 1496 cc::switches::kShowReplicaScreenSpaceRects, |
| 1495 cc::switches::kShowScreenSpaceRects, | 1497 cc::switches::kShowScreenSpaceRects, |
| 1496 cc::switches::kShowSurfaceDamageRects, | 1498 cc::switches::kShowSurfaceDamageRects, |
| 1497 cc::switches::kSlowDownRasterScaleFactor, | 1499 cc::switches::kSlowDownRasterScaleFactor, |
| 1498 cc::switches::kTopControlsHideThreshold, | 1500 cc::switches::kTopControlsHideThreshold, |
| 1499 cc::switches::kTopControlsShowThreshold, | 1501 cc::switches::kTopControlsShowThreshold, |
| 1500 | 1502 |
| 1501 scheduler::switches::kDisableBackgroundTimerThrottling, | 1503 scheduler::switches::kDisableBackgroundTimerThrottling, |
| 1502 | 1504 |
| 1505 mus::switches::kUseChromeGpuCommandBufferInMus, |
| 1506 |
| 1503 #if defined(ENABLE_PLUGINS) | 1507 #if defined(ENABLE_PLUGINS) |
| 1504 switches::kEnablePepperTesting, | 1508 switches::kEnablePepperTesting, |
| 1505 #endif | 1509 #endif |
| 1506 #if defined(ENABLE_WEBRTC) | 1510 #if defined(ENABLE_WEBRTC) |
| 1507 switches::kDisableWebRtcHWDecoding, | 1511 switches::kDisableWebRtcHWDecoding, |
| 1508 switches::kDisableWebRtcHWEncoding, | 1512 switches::kDisableWebRtcHWEncoding, |
| 1509 switches::kEnableWebRtcDtls12, | 1513 switches::kEnableWebRtcDtls12, |
| 1510 switches::kEnableWebRtcHWH264Encoding, | 1514 switches::kEnableWebRtcHWH264Encoding, |
| 1511 switches::kEnableWebRtcStunOrigin, | 1515 switches::kEnableWebRtcStunOrigin, |
| 1512 switches::kEnforceWebRtcIPPermissionCheck, | 1516 switches::kEnforceWebRtcIPPermissionCheck, |
| (...skipping 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2814 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2818 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 2815 | 2819 |
| 2816 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2820 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
| 2817 // enough information here so that we can determine what the bad message was. | 2821 // enough information here so that we can determine what the bad message was. |
| 2818 base::debug::Alias(&error); | 2822 base::debug::Alias(&error); |
| 2819 bad_message::ReceivedBadMessage(process.get(), | 2823 bad_message::ReceivedBadMessage(process.get(), |
| 2820 bad_message::RPH_MOJO_PROCESS_ERROR); | 2824 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 2821 } | 2825 } |
| 2822 | 2826 |
| 2823 } // namespace content | 2827 } // namespace content |
| OLD | NEW |