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 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1263 switches::kMaxUntiledLayerWidth, | 1263 switches::kMaxUntiledLayerWidth, |
1264 switches::kMaxUntiledLayerHeight, | 1264 switches::kMaxUntiledLayerHeight, |
1265 switches::kMemoryMetrics, | 1265 switches::kMemoryMetrics, |
1266 switches::kNoReferrers, | 1266 switches::kNoReferrers, |
1267 switches::kNoSandbox, | 1267 switches::kNoSandbox, |
1268 switches::kPpapiInProcess, | 1268 switches::kPpapiInProcess, |
1269 switches::kProfilerTiming, | 1269 switches::kProfilerTiming, |
1270 switches::kReducedReferrerGranularity, | 1270 switches::kReducedReferrerGranularity, |
1271 switches::kReduceSecurityForTesting, | 1271 switches::kReduceSecurityForTesting, |
1272 switches::kRegisterPepperPlugins, | 1272 switches::kRegisterPepperPlugins, |
1273 switches::kRendererAssertTest, | |
1274 switches::kRendererStartupDialog, | 1273 switches::kRendererStartupDialog, |
1275 switches::kRootLayerScrolls, | 1274 switches::kRootLayerScrolls, |
1276 switches::kShowPaintRects, | 1275 switches::kShowPaintRects, |
1277 switches::kSitePerProcess, | 1276 switches::kSitePerProcess, |
1278 switches::kStatsCollectionController, | 1277 switches::kStatsCollectionController, |
1279 switches::kTestType, | 1278 switches::kTestType, |
1280 switches::kTouchEvents, | 1279 switches::kTouchEvents, |
1281 switches::kTraceToConsole, | 1280 switches::kTraceToConsole, |
1282 switches::kUseDiscardableMemory, | 1281 switches::kUseDiscardableMemory, |
1283 // This flag needs to be propagated to the renderer process for | 1282 // This flag needs to be propagated to the renderer process for |
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2356 | 2355 |
2357 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2356 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2358 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2357 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2359 DCHECK_GT(worker_ref_count_, 0); | 2358 DCHECK_GT(worker_ref_count_, 0); |
2360 --worker_ref_count_; | 2359 --worker_ref_count_; |
2361 if (worker_ref_count_ == 0) | 2360 if (worker_ref_count_ == 0) |
2362 Cleanup(); | 2361 Cleanup(); |
2363 } | 2362 } |
2364 | 2363 |
2365 } // namespace content | 2364 } // namespace content |
OLD | NEW |