| 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 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1229 switches::kDisableWebRTC, | 1229 switches::kDisableWebRTC, |
| 1230 switches::kEnableSpeechRecognition, | 1230 switches::kEnableSpeechRecognition, |
| 1231 switches::kMediaDrmEnableNonCompositing, | 1231 switches::kMediaDrmEnableNonCompositing, |
| 1232 switches::kNetworkCountryIso, | 1232 switches::kNetworkCountryIso, |
| 1233 switches::kDisableWebAudio, | 1233 switches::kDisableWebAudio, |
| 1234 switches::kRendererWaitForJavaDebugger, | 1234 switches::kRendererWaitForJavaDebugger, |
| 1235 #endif | 1235 #endif |
| 1236 #if defined(OS_MACOSX) | 1236 #if defined(OS_MACOSX) |
| 1237 // Allow this to be set when invoking the browser and relayed along. | 1237 // Allow this to be set when invoking the browser and relayed along. |
| 1238 switches::kEnableSandboxLogging, | 1238 switches::kEnableSandboxLogging, |
| 1239 switches::kEnableThreadedEventHandlingMac, |
| 1239 #endif | 1240 #endif |
| 1240 #if defined(OS_WIN) | 1241 #if defined(OS_WIN) |
| 1241 switches::kDisableDirectWrite, | 1242 switches::kDisableDirectWrite, |
| 1242 #endif | 1243 #endif |
| 1243 #if defined(OS_CHROMEOS) | 1244 #if defined(OS_CHROMEOS) |
| 1244 switches::kDisableVaapiAcceleratedVideoEncode, | 1245 switches::kDisableVaapiAcceleratedVideoEncode, |
| 1245 #endif | 1246 #endif |
| 1246 }; | 1247 }; |
| 1247 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1248 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 1248 arraysize(kSwitchNames)); | 1249 arraysize(kSwitchNames)); |
| (...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2230 | 2231 |
| 2231 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2232 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
| 2232 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2233 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2233 DCHECK_GT(worker_ref_count_, 0); | 2234 DCHECK_GT(worker_ref_count_, 0); |
| 2234 --worker_ref_count_; | 2235 --worker_ref_count_; |
| 2235 if (worker_ref_count_ == 0) | 2236 if (worker_ref_count_ == 0) |
| 2236 Cleanup(); | 2237 Cleanup(); |
| 2237 } | 2238 } |
| 2238 | 2239 |
| 2239 } // namespace content | 2240 } // namespace content |
| OLD | NEW |