| 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 29 matching lines...) Expand all Loading... |
| 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 "cc/output/buffer_to_texture_target_map.h" | 47 #include "cc/output/buffer_to_texture_target_map.h" |
| 48 #include "components/memory_coordinator/browser/memory_coordinator.h" | 48 #include "components/memory_coordinator/browser/memory_coordinator.h" |
| 49 #include "components/memory_coordinator/common/memory_coordinator_features.h" | 49 #include "components/memory_coordinator/common/memory_coordinator_features.h" |
| 50 #include "components/scheduler/common/scheduler_switches.h" | |
| 51 #include "components/tracing/common/tracing_switches.h" | 50 #include "components/tracing/common/tracing_switches.h" |
| 52 #include "content/browser/appcache/appcache_dispatcher_host.h" | 51 #include "content/browser/appcache/appcache_dispatcher_host.h" |
| 53 #include "content/browser/appcache/chrome_appcache_service.h" | 52 #include "content/browser/appcache/chrome_appcache_service.h" |
| 54 #include "content/browser/background_sync/background_sync_service_impl.h" | 53 #include "content/browser/background_sync/background_sync_service_impl.h" |
| 55 #include "content/browser/bad_message.h" | 54 #include "content/browser/bad_message.h" |
| 56 #include "content/browser/blob_storage/blob_dispatcher_host.h" | 55 #include "content/browser/blob_storage/blob_dispatcher_host.h" |
| 57 #include "content/browser/blob_storage/chrome_blob_storage_context.h" | 56 #include "content/browser/blob_storage/chrome_blob_storage_context.h" |
| 58 #include "content/browser/broadcast_channel/broadcast_channel_provider.h" | 57 #include "content/browser/broadcast_channel/broadcast_channel_provider.h" |
| 59 #include "content/browser/browser_child_process_host_impl.h" | 58 #include "content/browser/browser_child_process_host_impl.h" |
| 60 #include "content/browser/browser_main.h" | 59 #include "content/browser/browser_main.h" |
| (...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1603 cc::switches::kShowFPSCounter, | 1602 cc::switches::kShowFPSCounter, |
| 1604 cc::switches::kShowLayerAnimationBounds, | 1603 cc::switches::kShowLayerAnimationBounds, |
| 1605 cc::switches::kShowPropertyChangedRects, | 1604 cc::switches::kShowPropertyChangedRects, |
| 1606 cc::switches::kShowReplicaScreenSpaceRects, | 1605 cc::switches::kShowReplicaScreenSpaceRects, |
| 1607 cc::switches::kShowScreenSpaceRects, | 1606 cc::switches::kShowScreenSpaceRects, |
| 1608 cc::switches::kShowSurfaceDamageRects, | 1607 cc::switches::kShowSurfaceDamageRects, |
| 1609 cc::switches::kSlowDownRasterScaleFactor, | 1608 cc::switches::kSlowDownRasterScaleFactor, |
| 1610 cc::switches::kTopControlsHideThreshold, | 1609 cc::switches::kTopControlsHideThreshold, |
| 1611 cc::switches::kTopControlsShowThreshold, | 1610 cc::switches::kTopControlsShowThreshold, |
| 1612 | 1611 |
| 1613 scheduler::switches::kDisableBackgroundTimerThrottling, | |
| 1614 | |
| 1615 #if defined(ENABLE_PLUGINS) | 1612 #if defined(ENABLE_PLUGINS) |
| 1616 switches::kEnablePepperTesting, | 1613 switches::kEnablePepperTesting, |
| 1617 #endif | 1614 #endif |
| 1618 #if defined(ENABLE_WEBRTC) | 1615 #if defined(ENABLE_WEBRTC) |
| 1619 switches::kDisableWebRtcHWDecoding, | 1616 switches::kDisableWebRtcHWDecoding, |
| 1620 switches::kDisableWebRtcHWEncoding, | 1617 switches::kDisableWebRtcHWEncoding, |
| 1621 switches::kEnableWebRtcDtls12, | 1618 switches::kEnableWebRtcDtls12, |
| 1622 switches::kEnableWebRtcHWH264Encoding, | 1619 switches::kEnableWebRtcHWH264Encoding, |
| 1623 switches::kEnableWebRtcStunOrigin, | 1620 switches::kEnableWebRtcStunOrigin, |
| 1624 switches::kEnforceWebRtcIPPermissionCheck, | 1621 switches::kEnforceWebRtcIPPermissionCheck, |
| (...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2839 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2836 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 2840 | 2837 |
| 2841 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2838 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
| 2842 // enough information here so that we can determine what the bad message was. | 2839 // enough information here so that we can determine what the bad message was. |
| 2843 base::debug::Alias(&error); | 2840 base::debug::Alias(&error); |
| 2844 bad_message::ReceivedBadMessage(process.get(), | 2841 bad_message::ReceivedBadMessage(process.get(), |
| 2845 bad_message::RPH_MOJO_PROCESS_ERROR); | 2842 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 2846 } | 2843 } |
| 2847 | 2844 |
| 2848 } // namespace content | 2845 } // namespace content |
| OLD | NEW |