OLD | NEW |
1 // Copyright (c) 2011 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 #include "content/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 189 |
190 // In single process the single process is all there is. | 190 // In single process the single process is all there is. |
191 suspend_webkit_shared_timer_ = true; | 191 suspend_webkit_shared_timer_ = true; |
192 notify_webkit_of_modal_loop_ = true; | 192 notify_webkit_of_modal_loop_ = true; |
193 plugin_refresh_allowed_ = true; | 193 plugin_refresh_allowed_ = true; |
194 widget_count_ = 0; | 194 widget_count_ = 0; |
195 hidden_widget_count_ = 0; | 195 hidden_widget_count_ = 0; |
196 idle_notification_delay_in_ms_ = kInitialIdleHandlerDelayMs; | 196 idle_notification_delay_in_ms_ = kInitialIdleHandlerDelayMs; |
197 idle_notifications_to_skip_ = 0; | 197 idle_notifications_to_skip_ = 0; |
198 compositor_initialized_ = false; | 198 compositor_initialized_ = false; |
199 task_factory_.reset(new ScopedRunnableMethodFactory<RenderThreadImpl>(this)); | |
200 | 199 |
201 appcache_dispatcher_.reset(new AppCacheDispatcher(Get())); | 200 appcache_dispatcher_.reset(new AppCacheDispatcher(Get())); |
202 main_thread_indexed_db_dispatcher_.reset( | 201 main_thread_indexed_db_dispatcher_.reset( |
203 IndexedDBDispatcher::ThreadSpecificInstance()); | 202 IndexedDBDispatcher::ThreadSpecificInstance()); |
204 | 203 |
205 db_message_filter_ = new DBMessageFilter(); | 204 db_message_filter_ = new DBMessageFilter(); |
206 AddFilter(db_message_filter_.get()); | 205 AddFilter(db_message_filter_.get()); |
207 | 206 |
208 vc_manager_ = new VideoCaptureImplManager(); | 207 vc_manager_ = new VideoCaptureImplManager(); |
209 AddFilter(vc_manager_->video_capture_message_filter()); | 208 AddFilter(vc_manager_->video_capture_message_filter()); |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 | 845 |
847 scoped_refptr<base::MessageLoopProxy> | 846 scoped_refptr<base::MessageLoopProxy> |
848 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 847 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
849 DCHECK(message_loop() == MessageLoop::current()); | 848 DCHECK(message_loop() == MessageLoop::current()); |
850 if (!file_thread_.get()) { | 849 if (!file_thread_.get()) { |
851 file_thread_.reset(new base::Thread("Renderer::FILE")); | 850 file_thread_.reset(new base::Thread("Renderer::FILE")); |
852 file_thread_->Start(); | 851 file_thread_->Start(); |
853 } | 852 } |
854 return file_thread_->message_loop_proxy(); | 853 return file_thread_->message_loop_proxy(); |
855 } | 854 } |
OLD | NEW |