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 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1023 switches::kDisableDatabases, | 1023 switches::kDisableDatabases, |
1024 switches::kDisableDelegatedRenderer, | 1024 switches::kDisableDelegatedRenderer, |
1025 switches::kDisableDesktopNotifications, | 1025 switches::kDisableDesktopNotifications, |
1026 switches::kDisableDirectNPAPIRequests, | 1026 switches::kDisableDirectNPAPIRequests, |
1027 switches::kDisableFileSystem, | 1027 switches::kDisableFileSystem, |
1028 switches::kDisableFiltersOverIPC, | 1028 switches::kDisableFiltersOverIPC, |
1029 switches::kDisableGpu, | 1029 switches::kDisableGpu, |
1030 switches::kDisableGpuCompositing, | 1030 switches::kDisableGpuCompositing, |
1031 switches::kDisableGpuRasterization, | 1031 switches::kDisableGpuRasterization, |
1032 switches::kDisableGpuVsync, | 1032 switches::kDisableGpuVsync, |
| 1033 switches::kDisableLowResTiling, |
1033 switches::kDisableHistogramCustomizer, | 1034 switches::kDisableHistogramCustomizer, |
1034 switches::kDisableImplSidePainting, | 1035 switches::kDisableImplSidePainting, |
1035 switches::kDisableLCDText, | 1036 switches::kDisableLCDText, |
1036 switches::kDisableLayerSquashing, | 1037 switches::kDisableLayerSquashing, |
1037 switches::kDisableLocalStorage, | 1038 switches::kDisableLocalStorage, |
1038 switches::kDisableLogging, | 1039 switches::kDisableLogging, |
1039 switches::kDisableMapImage, | 1040 switches::kDisableMapImage, |
1040 switches::kDisableOverlayScrollbar, | 1041 switches::kDisableOverlayScrollbar, |
1041 switches::kDisablePinch, | 1042 switches::kDisablePinch, |
1042 switches::kDisablePrefixedEncryptedMedia, | 1043 switches::kDisablePrefixedEncryptedMedia, |
(...skipping 25 matching lines...) Expand all Loading... |
1068 switches::kEnableExperimentalCanvasFeatures, | 1069 switches::kEnableExperimentalCanvasFeatures, |
1069 switches::kEnableExperimentalWebPlatformFeatures, | 1070 switches::kEnableExperimentalWebPlatformFeatures, |
1070 switches::kEnableExperimentalWebSocket, | 1071 switches::kEnableExperimentalWebSocket, |
1071 switches::kEnableFastTextAutosizing, | 1072 switches::kEnableFastTextAutosizing, |
1072 switches::kEnableGPUClientLogging, | 1073 switches::kEnableGPUClientLogging, |
1073 switches::kEnableGpuClientTracing, | 1074 switches::kEnableGpuClientTracing, |
1074 switches::kEnableGpuRasterization, | 1075 switches::kEnableGpuRasterization, |
1075 switches::kEnableGPUServiceLogging, | 1076 switches::kEnableGPUServiceLogging, |
1076 switches::kEnableHighDpiCompositingForFixedPosition, | 1077 switches::kEnableHighDpiCompositingForFixedPosition, |
1077 switches::kEnableHTMLImports, | 1078 switches::kEnableHTMLImports, |
| 1079 switches::kEnableLowResTiling, |
1078 switches::kEnableImplSidePainting, | 1080 switches::kEnableImplSidePainting, |
1079 switches::kEnableInbandTextTracks, | 1081 switches::kEnableInbandTextTracks, |
1080 switches::kEnableLCDText, | 1082 switches::kEnableLCDText, |
1081 switches::kEnableLayerSquashing, | 1083 switches::kEnableLayerSquashing, |
1082 switches::kEnableLogging, | 1084 switches::kEnableLogging, |
1083 switches::kEnableMP3StreamParser, | 1085 switches::kEnableMP3StreamParser, |
1084 switches::kEnableMapImage, | 1086 switches::kEnableMapImage, |
1085 switches::kEnableMemoryBenchmarking, | 1087 switches::kEnableMemoryBenchmarking, |
1086 switches::kEnableOverlayFullscreenVideo, | 1088 switches::kEnableOverlayFullscreenVideo, |
1087 switches::kEnableOverlayScrollbar, | 1089 switches::kEnableOverlayScrollbar, |
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2132 | 2134 |
2133 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2135 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2134 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 2136 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
2135 DCHECK_GT(worker_ref_count_, 0); | 2137 DCHECK_GT(worker_ref_count_, 0); |
2136 --worker_ref_count_; | 2138 --worker_ref_count_; |
2137 if (worker_ref_count_ == 0) | 2139 if (worker_ref_count_ == 0) |
2138 Cleanup(); | 2140 Cleanup(); |
2139 } | 2141 } |
2140 | 2142 |
2141 } // namespace content | 2143 } // namespace content |
OLD | NEW |