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

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

Issue 10052005: Add DCHECK to ensure IndexedDBDispatcher doesn't get re-created. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix kHasBeenDeleted Created 8 years, 8 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/common/indexed_db/indexed_db_dispatcher.cc ('k') | no next file » | 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) 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 #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>
(...skipping 14 matching lines...) Expand all
25 #include "base/win/scoped_com_initializer.h" 25 #include "base/win/scoped_com_initializer.h"
26 #include "content/common/appcache/appcache_dispatcher.h" 26 #include "content/common/appcache/appcache_dispatcher.h"
27 #include "content/common/child_process_messages.h" 27 #include "content/common/child_process_messages.h"
28 #include "content/common/database_messages.h" 28 #include "content/common/database_messages.h"
29 #include "content/common/db_message_filter.h" 29 #include "content/common/db_message_filter.h"
30 #include "content/common/dom_storage_messages.h" 30 #include "content/common/dom_storage_messages.h"
31 #include "content/common/gpu/client/gpu_channel_host.h" 31 #include "content/common/gpu/client/gpu_channel_host.h"
32 #include "content/common/gpu/gpu_messages.h" 32 #include "content/common/gpu/gpu_messages.h"
33 #include "content/common/indexed_db/indexed_db_dispatcher.h" 33 #include "content/common/indexed_db/indexed_db_dispatcher.h"
34 #include "content/common/indexed_db/indexed_db_message_filter.h" 34 #include "content/common/indexed_db/indexed_db_message_filter.h"
35 #include "content/common/indexed_db/proxy_webidbfactory_impl.h"
36 #include "content/common/npobject_util.h" 35 #include "content/common/npobject_util.h"
37 #include "content/common/plugin_messages.h" 36 #include "content/common/plugin_messages.h"
38 #include "content/common/resource_dispatcher.h" 37 #include "content/common/resource_dispatcher.h"
39 #include "content/common/resource_messages.h" 38 #include "content/common/resource_messages.h"
40 #include "content/common/view_messages.h" 39 #include "content/common/view_messages.h"
41 #include "content/common/web_database_observer_impl.h" 40 #include "content/common/web_database_observer_impl.h"
42 #include "content/public/common/content_paths.h" 41 #include "content/public/common/content_paths.h"
43 #include "content/public/common/content_switches.h" 42 #include "content/public/common/content_switches.h"
44 #include "content/public/common/renderer_preferences.h" 43 #include "content/public/common/renderer_preferences.h"
45 #include "content/public/common/url_constants.h" 44 #include "content/public/common/url_constants.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 suspend_webkit_shared_timer_ = true; 202 suspend_webkit_shared_timer_ = true;
204 notify_webkit_of_modal_loop_ = true; 203 notify_webkit_of_modal_loop_ = true;
205 plugin_refresh_allowed_ = true; 204 plugin_refresh_allowed_ = true;
206 widget_count_ = 0; 205 widget_count_ = 0;
207 hidden_widget_count_ = 0; 206 hidden_widget_count_ = 0;
208 idle_notification_delay_in_ms_ = kInitialIdleHandlerDelayMs; 207 idle_notification_delay_in_ms_ = kInitialIdleHandlerDelayMs;
209 idle_notifications_to_skip_ = 0; 208 idle_notifications_to_skip_ = 0;
210 compositor_initialized_ = false; 209 compositor_initialized_ = false;
211 210
212 appcache_dispatcher_.reset(new AppCacheDispatcher(Get())); 211 appcache_dispatcher_.reset(new AppCacheDispatcher(Get()));
213 main_thread_indexed_db_dispatcher_.reset( 212 main_thread_indexed_db_dispatcher_.reset(new IndexedDBDispatcher());
214 IndexedDBDispatcher::ThreadSpecificInstance());
215 213
216 media_stream_center_ = NULL; 214 media_stream_center_ = NULL;
217 215
218 db_message_filter_ = new DBMessageFilter(); 216 db_message_filter_ = new DBMessageFilter();
219 AddFilter(db_message_filter_.get()); 217 AddFilter(db_message_filter_.get());
220 218
221 vc_manager_ = new VideoCaptureImplManager(); 219 vc_manager_ = new VideoCaptureImplManager();
222 AddFilter(vc_manager_->video_capture_message_filter()); 220 AddFilter(vc_manager_->video_capture_message_filter());
223 221
224 audio_input_message_filter_ = new AudioInputMessageFilter(); 222 audio_input_message_filter_ = new AudioInputMessageFilter();
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 984
987 scoped_refptr<base::MessageLoopProxy> 985 scoped_refptr<base::MessageLoopProxy>
988 RenderThreadImpl::GetFileThreadMessageLoopProxy() { 986 RenderThreadImpl::GetFileThreadMessageLoopProxy() {
989 DCHECK(message_loop() == MessageLoop::current()); 987 DCHECK(message_loop() == MessageLoop::current());
990 if (!file_thread_.get()) { 988 if (!file_thread_.get()) {
991 file_thread_.reset(new base::Thread("Renderer::FILE")); 989 file_thread_.reset(new base::Thread("Renderer::FILE"));
992 file_thread_->Start(); 990 file_thread_->Start();
993 } 991 }
994 return file_thread_->message_loop_proxy(); 992 return file_thread_->message_loop_proxy();
995 } 993 }
OLDNEW
« no previous file with comments | « content/common/indexed_db/indexed_db_dispatcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698