| 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 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1133 switches::kEnableVtune, | 1133 switches::kEnableVtune, |
| 1134 switches::kEnableWebGLDraftExtensions, | 1134 switches::kEnableWebGLDraftExtensions, |
| 1135 switches::kEnableWebGLImageChromium, | 1135 switches::kEnableWebGLImageChromium, |
| 1136 switches::kEnableWebMIDI, | 1136 switches::kEnableWebMIDI, |
| 1137 switches::kEnableZeroCopy, | 1137 switches::kEnableZeroCopy, |
| 1138 switches::kForceDeviceScaleFactor, | 1138 switches::kForceDeviceScaleFactor, |
| 1139 switches::kFullMemoryCrashReport, | 1139 switches::kFullMemoryCrashReport, |
| 1140 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, | 1140 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, |
| 1141 switches::kIPCConnectionTimeout, | 1141 switches::kIPCConnectionTimeout, |
| 1142 switches::kJavaScriptFlags, | 1142 switches::kJavaScriptFlags, |
| 1143 switches::kJavaScriptHarmony, |
| 1143 switches::kLoggingLevel, | 1144 switches::kLoggingLevel, |
| 1144 switches::kMainFrameResizesAreOrientationChanges, | 1145 switches::kMainFrameResizesAreOrientationChanges, |
| 1145 switches::kMaxUntiledLayerWidth, | 1146 switches::kMaxUntiledLayerWidth, |
| 1146 switches::kMaxUntiledLayerHeight, | 1147 switches::kMaxUntiledLayerHeight, |
| 1147 switches::kMemoryMetrics, | 1148 switches::kMemoryMetrics, |
| 1148 switches::kNoReferrers, | 1149 switches::kNoReferrers, |
| 1149 switches::kNoSandbox, | 1150 switches::kNoSandbox, |
| 1150 switches::kPpapiInProcess, | 1151 switches::kPpapiInProcess, |
| 1151 switches::kProfilerTiming, | 1152 switches::kProfilerTiming, |
| 1152 switches::kReduceSecurityForTesting, | 1153 switches::kReduceSecurityForTesting, |
| (...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2211 | 2212 |
| 2212 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2213 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
| 2213 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2214 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2214 DCHECK_GT(worker_ref_count_, 0); | 2215 DCHECK_GT(worker_ref_count_, 0); |
| 2215 --worker_ref_count_; | 2216 --worker_ref_count_; |
| 2216 if (worker_ref_count_ == 0) | 2217 if (worker_ref_count_ == 0) |
| 2217 Cleanup(); | 2218 Cleanup(); |
| 2218 } | 2219 } |
| 2219 | 2220 |
| 2220 } // namespace content | 2221 } // namespace content |
| OLD | NEW |