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 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 #endif | 1239 #endif |
| 1240 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 1241 switches::kEnableThreadedEventHandlingMac, |
| 1242 #endif |
1240 #if defined(OS_WIN) | 1243 #if defined(OS_WIN) |
1241 switches::kDisableDirectWrite, | 1244 switches::kDisableDirectWrite, |
1242 #endif | 1245 #endif |
1243 #if defined(OS_CHROMEOS) | 1246 #if defined(OS_CHROMEOS) |
1244 switches::kDisableVaapiAcceleratedVideoEncode, | 1247 switches::kDisableVaapiAcceleratedVideoEncode, |
1245 #endif | 1248 #endif |
1246 }; | 1249 }; |
1247 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1250 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
1248 arraysize(kSwitchNames)); | 1251 arraysize(kSwitchNames)); |
1249 | 1252 |
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2230 | 2233 |
2231 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2234 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2232 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2235 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2233 DCHECK_GT(worker_ref_count_, 0); | 2236 DCHECK_GT(worker_ref_count_, 0); |
2234 --worker_ref_count_; | 2237 --worker_ref_count_; |
2235 if (worker_ref_count_ == 0) | 2238 if (worker_ref_count_ == 0) |
2236 Cleanup(); | 2239 Cleanup(); |
2237 } | 2240 } |
2238 | 2241 |
2239 } // namespace content | 2242 } // namespace content |
OLD | NEW |