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 #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 <utility> | 10 #include <utility> |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 // Note: This may reorder messages from the ResourceDispatcher with respect to | 632 // Note: This may reorder messages from the ResourceDispatcher with respect to |
633 // other subsystems. | 633 // other subsystems. |
634 resource_dispatch_throttler_.reset(new ResourceDispatchThrottler( | 634 resource_dispatch_throttler_.reset(new ResourceDispatchThrottler( |
635 static_cast<RenderThread*>(this), renderer_scheduler_.get(), | 635 static_cast<RenderThread*>(this), renderer_scheduler_.get(), |
636 base::TimeDelta::FromSecondsD(kThrottledResourceRequestFlushPeriodS), | 636 base::TimeDelta::FromSecondsD(kThrottledResourceRequestFlushPeriodS), |
637 kMaxResourceRequestsPerFlushWhenThrottled)); | 637 kMaxResourceRequestsPerFlushWhenThrottled)); |
638 resource_dispatcher()->set_message_sender(resource_dispatch_throttler_.get()); | 638 resource_dispatcher()->set_message_sender(resource_dispatch_throttler_.get()); |
639 | 639 |
640 media_stream_center_ = NULL; | 640 media_stream_center_ = NULL; |
641 | 641 |
642 blob_message_filter_ = new BlobMessageFilter(); | 642 blob_message_filter_ = new BlobMessageFilter(GetFileThreadMessageLoopProxy()); |
643 AddFilter(blob_message_filter_.get()); | 643 AddFilter(blob_message_filter_.get()); |
644 db_message_filter_ = new DBMessageFilter(); | 644 db_message_filter_ = new DBMessageFilter(); |
645 AddFilter(db_message_filter_.get()); | 645 AddFilter(db_message_filter_.get()); |
646 | 646 |
647 vc_manager_.reset(new VideoCaptureImplManager()); | 647 vc_manager_.reset(new VideoCaptureImplManager()); |
648 AddFilter(vc_manager_->video_capture_message_filter()); | 648 AddFilter(vc_manager_->video_capture_message_filter()); |
649 | 649 |
650 browser_plugin_manager_.reset(new BrowserPluginManager()); | 650 browser_plugin_manager_.reset(new BrowserPluginManager()); |
651 AddObserver(browser_plugin_manager_.get()); | 651 AddObserver(browser_plugin_manager_.get()); |
652 | 652 |
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2039 } | 2039 } |
2040 | 2040 |
2041 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 2041 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
2042 size_t erased = | 2042 size_t erased = |
2043 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 2043 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
2044 routing_id_); | 2044 routing_id_); |
2045 DCHECK_EQ(1u, erased); | 2045 DCHECK_EQ(1u, erased); |
2046 } | 2046 } |
2047 | 2047 |
2048 } // namespace content | 2048 } // namespace content |
OLD | NEW |