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

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

Issue 17955002: Fix IndexedDB after r208777. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unittests Created 7 years, 5 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
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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 widget_count_ = 0; 343 widget_count_ = 0;
344 hidden_widget_count_ = 0; 344 hidden_widget_count_ = 0;
345 idle_notification_delay_in_ms_ = kInitialIdleHandlerDelayMs; 345 idle_notification_delay_in_ms_ = kInitialIdleHandlerDelayMs;
346 idle_notifications_to_skip_ = 0; 346 idle_notifications_to_skip_ = 0;
347 layout_test_mode_ = false; 347 layout_test_mode_ = false;
348 shutdown_event_ = NULL; 348 shutdown_event_ = NULL;
349 349
350 appcache_dispatcher_.reset( 350 appcache_dispatcher_.reset(
351 new AppCacheDispatcher(Get(), new appcache::AppCacheFrontendImpl())); 351 new AppCacheDispatcher(Get(), new appcache::AppCacheFrontendImpl()));
352 dom_storage_dispatcher_.reset(new DomStorageDispatcher()); 352 dom_storage_dispatcher_.reset(new DomStorageDispatcher());
353 main_thread_indexed_db_dispatcher_.reset(new IndexedDBDispatcher()); 353 main_thread_indexed_db_dispatcher_.reset(new IndexedDBDispatcher(
354 thread_safe_sender()));
354 355
355 media_stream_center_ = NULL; 356 media_stream_center_ = NULL;
356 357
357 db_message_filter_ = new DBMessageFilter(); 358 db_message_filter_ = new DBMessageFilter();
358 AddFilter(db_message_filter_.get()); 359 AddFilter(db_message_filter_.get());
359 360
360 #if defined(ENABLE_WEBRTC) 361 #if defined(ENABLE_WEBRTC)
361 peer_connection_tracker_.reset(new PeerConnectionTracker()); 362 peer_connection_tracker_.reset(new PeerConnectionTracker());
362 AddObserver(peer_connection_tracker_.get()); 363 AddObserver(peer_connection_tracker_.get());
363 364
364 p2p_socket_dispatcher_ = 365 p2p_socket_dispatcher_ =
365 new P2PSocketDispatcher(GetIOMessageLoopProxy().get()); 366 new P2PSocketDispatcher(GetIOMessageLoopProxy().get());
366 AddFilter(p2p_socket_dispatcher_.get()); 367 AddFilter(p2p_socket_dispatcher_.get());
367 #endif // defined(ENABLE_WEBRTC) 368 #endif // defined(ENABLE_WEBRTC)
368 vc_manager_ = new VideoCaptureImplManager(); 369 vc_manager_ = new VideoCaptureImplManager();
369 AddFilter(vc_manager_->video_capture_message_filter()); 370 AddFilter(vc_manager_->video_capture_message_filter());
370 371
371 audio_input_message_filter_ = 372 audio_input_message_filter_ =
372 new AudioInputMessageFilter(GetIOMessageLoopProxy()); 373 new AudioInputMessageFilter(GetIOMessageLoopProxy());
373 AddFilter(audio_input_message_filter_.get()); 374 AddFilter(audio_input_message_filter_.get());
374 375
375 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy()); 376 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy());
376 AddFilter(audio_message_filter_.get()); 377 AddFilter(audio_message_filter_.get());
377 378
378 midi_message_filter_ = new MIDIMessageFilter(GetIOMessageLoopProxy()); 379 midi_message_filter_ = new MIDIMessageFilter(GetIOMessageLoopProxy());
379 AddFilter(midi_message_filter_.get()); 380 AddFilter(midi_message_filter_.get());
380 381
381 AddFilter(new IndexedDBMessageFilter(sync_message_filter())); 382 AddFilter(new IndexedDBMessageFilter(thread_safe_sender()));
382 383
383 GetContentClient()->renderer()->RenderThreadStarted(); 384 GetContentClient()->renderer()->RenderThreadStarted();
384 385
385 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 386 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
386 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking)) 387 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking))
387 RegisterExtension(GpuBenchmarkingExtension::Get()); 388 RegisterExtension(GpuBenchmarkingExtension::Get());
388 389
389 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 390 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
390 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) 391 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking))
391 RegisterExtension(MemoryBenchmarkingExtension::Get()); 392 RegisterExtension(MemoryBenchmarkingExtension::Get());
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 1259
1259 void RenderThreadImpl::SetFlingCurveParameters( 1260 void RenderThreadImpl::SetFlingCurveParameters(
1260 const std::vector<float>& new_touchpad, 1261 const std::vector<float>& new_touchpad,
1261 const std::vector<float>& new_touchscreen) { 1262 const std::vector<float>& new_touchscreen) {
1262 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, 1263 webkit_platform_support_->SetFlingCurveParameters(new_touchpad,
1263 new_touchscreen); 1264 new_touchscreen);
1264 1265
1265 } 1266 }
1266 1267
1267 } // namespace content 1268 } // namespace content
OLDNEW
« no previous file with comments | « content/child/thread_safe_sender.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698