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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 switches::kSitePerProcess, | 1080 switches::kSitePerProcess, |
1081 switches::kStatsCollectionController, | 1081 switches::kStatsCollectionController, |
1082 switches::kTestSandbox, | 1082 switches::kTestSandbox, |
1083 switches::kTouchEvents, | 1083 switches::kTouchEvents, |
1084 switches::kTraceToConsole, | 1084 switches::kTraceToConsole, |
1085 switches::kUseDiscardableMemory, | 1085 switches::kUseDiscardableMemory, |
1086 // This flag needs to be propagated to the renderer process for | 1086 // This flag needs to be propagated to the renderer process for |
1087 // --in-process-webgl. | 1087 // --in-process-webgl. |
1088 switches::kUseGL, | 1088 switches::kUseGL, |
1089 switches::kUseMobileUserAgent, | 1089 switches::kUseMobileUserAgent, |
1090 switches::kUserAgent, | |
1091 switches::kV, | 1090 switches::kV, |
1092 switches::kVideoThreads, | 1091 switches::kVideoThreads, |
1093 switches::kVModule, | 1092 switches::kVModule, |
1094 switches::kWebGLCommandBufferSizeKb, | 1093 switches::kWebGLCommandBufferSizeKb, |
1095 // Please keep these in alphabetical order. Compositor switches here should | 1094 // Please keep these in alphabetical order. Compositor switches here should |
1096 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. | 1095 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. |
1097 cc::switches::kCompositeToMailbox, | 1096 cc::switches::kCompositeToMailbox, |
1098 cc::switches::kDisableCompositedAntialiasing, | 1097 cc::switches::kDisableCompositedAntialiasing, |
1099 cc::switches::kDisableCompositorTouchHitTesting, | 1098 cc::switches::kDisableCompositorTouchHitTesting, |
1100 cc::switches::kDisableGPURasterization, | 1099 cc::switches::kDisableGPURasterization, |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2091 | 2090 |
2092 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2091 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2093 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 2092 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
2094 DCHECK_GT(worker_ref_count_, 0); | 2093 DCHECK_GT(worker_ref_count_, 0); |
2095 --worker_ref_count_; | 2094 --worker_ref_count_; |
2096 if (worker_ref_count_ == 0) | 2095 if (worker_ref_count_ == 0) |
2097 Cleanup(); | 2096 Cleanup(); |
2098 } | 2097 } |
2099 | 2098 |
2100 } // namespace content | 2099 } // namespace content |
OLD | NEW |