| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 #if defined(OS_ANDROID) | 153 #if defined(OS_ANDROID) |
| 154 #include "content/browser/media/android/browser_demuxer_android.h" | 154 #include "content/browser/media/android/browser_demuxer_android.h" |
| 155 #include "content/browser/screen_orientation/screen_orientation_message_filter_a
ndroid.h" | 155 #include "content/browser/screen_orientation/screen_orientation_message_filter_a
ndroid.h" |
| 156 #endif | 156 #endif |
| 157 | 157 |
| 158 #if defined(OS_WIN) | 158 #if defined(OS_WIN) |
| 159 #include "base/win/scoped_com_initializer.h" | 159 #include "base/win/scoped_com_initializer.h" |
| 160 #include "content/common/font_cache_dispatcher_win.h" | 160 #include "content/common/font_cache_dispatcher_win.h" |
| 161 #include "content/common/sandbox_win.h" | 161 #include "content/common/sandbox_win.h" |
| 162 #include "ui/gfx/win/dpi.h" | 162 #include "ui/gfx/dpi.h" |
| 163 #endif | 163 #endif |
| 164 | 164 |
| 165 #if defined(ENABLE_BROWSER_CDMS) | 165 #if defined(ENABLE_BROWSER_CDMS) |
| 166 #include "content/browser/media/cdm/browser_cdm_manager.h" | 166 #include "content/browser/media/cdm/browser_cdm_manager.h" |
| 167 #endif | 167 #endif |
| 168 | 168 |
| 169 #if defined(ENABLE_PLUGINS) | 169 #if defined(ENABLE_PLUGINS) |
| 170 #include "content/browser/plugin_service_impl.h" | 170 #include "content/browser/plugin_service_impl.h" |
| 171 #endif | 171 #endif |
| 172 | 172 |
| (...skipping 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2238 | 2238 |
| 2239 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2239 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
| 2240 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2240 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2241 DCHECK_GT(worker_ref_count_, 0); | 2241 DCHECK_GT(worker_ref_count_, 0); |
| 2242 --worker_ref_count_; | 2242 --worker_ref_count_; |
| 2243 if (worker_ref_count_ == 0) | 2243 if (worker_ref_count_ == 0) |
| 2244 Cleanup(); | 2244 Cleanup(); |
| 2245 } | 2245 } |
| 2246 | 2246 |
| 2247 } // namespace content | 2247 } // namespace content |
| OLD | NEW |