OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 static const char* const kSwitchNames[] = { | 1004 static const char* const kSwitchNames[] = { |
1005 switches::kAllowLoopbackInPeerConnection, | 1005 switches::kAllowLoopbackInPeerConnection, |
1006 switches::kAudioBufferSize, | 1006 switches::kAudioBufferSize, |
1007 switches::kAuditAllHandles, | 1007 switches::kAuditAllHandles, |
1008 switches::kAuditHandles, | 1008 switches::kAuditHandles, |
1009 switches::kBlinkPlatformLogChannels, | 1009 switches::kBlinkPlatformLogChannels, |
1010 switches::kBlockCrossSiteDocuments, | 1010 switches::kBlockCrossSiteDocuments, |
1011 switches::kDefaultTileWidth, | 1011 switches::kDefaultTileWidth, |
1012 switches::kDefaultTileHeight, | 1012 switches::kDefaultTileHeight, |
1013 switches::kDisable3DAPIs, | 1013 switches::kDisable3DAPIs, |
1014 switches::kDisableAcceleratedCompositing, | |
1015 switches::kDisableAcceleratedFixedRootBackground, | 1014 switches::kDisableAcceleratedFixedRootBackground, |
1016 switches::kDisableAcceleratedVideoDecode, | 1015 switches::kDisableAcceleratedVideoDecode, |
1017 switches::kDisableApplicationCache, | 1016 switches::kDisableApplicationCache, |
1018 switches::kDisableBreakpad, | 1017 switches::kDisableBreakpad, |
1019 switches::kDisableCompositingForFixedPosition, | 1018 switches::kDisableCompositingForFixedPosition, |
1020 switches::kDisableCompositingForTransition, | 1019 switches::kDisableCompositingForTransition, |
1021 switches::kDisableDatabases, | 1020 switches::kDisableDatabases, |
1022 switches::kDisableDesktopNotifications, | 1021 switches::kDisableDesktopNotifications, |
1023 switches::kDisableDirectNPAPIRequests, | 1022 switches::kDisableDirectNPAPIRequests, |
1024 switches::kDisableFastTextAutosizing, | 1023 switches::kDisableFastTextAutosizing, |
1025 switches::kDisableFileSystem, | 1024 switches::kDisableFileSystem, |
1026 switches::kDisableFiltersOverIPC, | 1025 switches::kDisableFiltersOverIPC, |
1027 switches::kDisableGpu, | |
1028 switches::kDisableGpuCompositing, | 1026 switches::kDisableGpuCompositing, |
1029 switches::kDisableGpuVsync, | 1027 switches::kDisableGpuVsync, |
1030 switches::kDisableLowResTiling, | 1028 switches::kDisableLowResTiling, |
1031 switches::kDisableHistogramCustomizer, | 1029 switches::kDisableHistogramCustomizer, |
1032 switches::kDisableLCDText, | 1030 switches::kDisableLCDText, |
1033 switches::kDisableLayerSquashing, | 1031 switches::kDisableLayerSquashing, |
1034 switches::kDisableLocalStorage, | 1032 switches::kDisableLocalStorage, |
1035 switches::kDisableLogging, | 1033 switches::kDisableLogging, |
1036 switches::kDisableMapImage, | 1034 switches::kDisableMapImage, |
1037 switches::kDisableMediaSource, | 1035 switches::kDisableMediaSource, |
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2124 | 2122 |
2125 void RenderProcessHostImpl::SetWebUIHandle( | 2123 void RenderProcessHostImpl::SetWebUIHandle( |
2126 int32 view_routing_id, | 2124 int32 view_routing_id, |
2127 mojo::ScopedMessagePipeHandle handle) { | 2125 mojo::ScopedMessagePipeHandle handle) { |
2128 if (!render_process_host_mojo_) | 2126 if (!render_process_host_mojo_) |
2129 render_process_host_mojo_.reset(new RenderProcessHostMojoImpl(this)); | 2127 render_process_host_mojo_.reset(new RenderProcessHostMojoImpl(this)); |
2130 render_process_host_mojo_->SetWebUIHandle(view_routing_id, handle.Pass()); | 2128 render_process_host_mojo_->SetWebUIHandle(view_routing_id, handle.Pass()); |
2131 } | 2129 } |
2132 | 2130 |
2133 } // namespace content | 2131 } // namespace content |
OLD | NEW |