Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 9071001: base::Bind: Remove ScopedRunnableMethodFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | remoting/base/scoped_thread_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | remoting/base/scoped_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698