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 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 switches::kJavaScriptFlags, | 1163 switches::kJavaScriptFlags, |
1164 switches::kLoggingLevel, | 1164 switches::kLoggingLevel, |
1165 switches::kMainFrameResizesAreOrientationChanges, | 1165 switches::kMainFrameResizesAreOrientationChanges, |
1166 switches::kMaxUntiledLayerWidth, | 1166 switches::kMaxUntiledLayerWidth, |
1167 switches::kMaxUntiledLayerHeight, | 1167 switches::kMaxUntiledLayerHeight, |
1168 switches::kMemoryMetrics, | 1168 switches::kMemoryMetrics, |
1169 switches::kNoReferrers, | 1169 switches::kNoReferrers, |
1170 switches::kNoSandbox, | 1170 switches::kNoSandbox, |
1171 switches::kPpapiInProcess, | 1171 switches::kPpapiInProcess, |
1172 switches::kProfilerTiming, | 1172 switches::kProfilerTiming, |
| 1173 switches::kReducedReferrerGranularity, |
1173 switches::kReduceSecurityForTesting, | 1174 switches::kReduceSecurityForTesting, |
1174 switches::kRegisterPepperPlugins, | 1175 switches::kRegisterPepperPlugins, |
1175 switches::kRendererAssertTest, | 1176 switches::kRendererAssertTest, |
1176 switches::kRendererStartupDialog, | 1177 switches::kRendererStartupDialog, |
1177 switches::kRootLayerScrolls, | 1178 switches::kRootLayerScrolls, |
1178 switches::kShowPaintRects, | 1179 switches::kShowPaintRects, |
1179 switches::kSitePerProcess, | 1180 switches::kSitePerProcess, |
1180 switches::kStatsCollectionController, | 1181 switches::kStatsCollectionController, |
1181 switches::kTestType, | 1182 switches::kTestType, |
1182 switches::kTouchEvents, | 1183 switches::kTouchEvents, |
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2236 | 2237 |
2237 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2238 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2238 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2239 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2239 DCHECK_GT(worker_ref_count_, 0); | 2240 DCHECK_GT(worker_ref_count_, 0); |
2240 --worker_ref_count_; | 2241 --worker_ref_count_; |
2241 if (worker_ref_count_ == 0) | 2242 if (worker_ref_count_ == 0) |
2242 Cleanup(); | 2243 Cleanup(); |
2243 } | 2244 } |
2244 | 2245 |
2245 } // namespace content | 2246 } // namespace content |
OLD | NEW |