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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 // In single process the single process is all there is. | 663 // In single process the single process is all there is. |
664 webkit_shared_timer_suspended_ = false; | 664 webkit_shared_timer_suspended_ = false; |
665 widget_count_ = 0; | 665 widget_count_ = 0; |
666 hidden_widget_count_ = 0; | 666 hidden_widget_count_ = 0; |
667 idle_notification_delay_in_ms_ = kInitialIdleHandlerDelayMs; | 667 idle_notification_delay_in_ms_ = kInitialIdleHandlerDelayMs; |
668 idle_notifications_to_skip_ = 0; | 668 idle_notifications_to_skip_ = 0; |
669 | 669 |
670 appcache_dispatcher_.reset( | 670 appcache_dispatcher_.reset( |
671 new AppCacheDispatcher(Get(), new AppCacheFrontendImpl())); | 671 new AppCacheDispatcher(Get(), new AppCacheFrontendImpl())); |
672 dom_storage_dispatcher_.reset(new DomStorageDispatcher()); | 672 dom_storage_dispatcher_.reset(new DomStorageDispatcher()); |
673 main_thread_indexed_db_dispatcher_.reset(new IndexedDBDispatcher( | 673 main_thread_indexed_db_dispatcher_.reset(new IndexedDBDispatcher()); |
674 thread_safe_sender())); | |
675 main_thread_cache_storage_dispatcher_.reset( | 674 main_thread_cache_storage_dispatcher_.reset( |
676 new CacheStorageDispatcher(thread_safe_sender())); | 675 new CacheStorageDispatcher(thread_safe_sender())); |
677 embedded_worker_dispatcher_.reset(new EmbeddedWorkerDispatcher()); | 676 embedded_worker_dispatcher_.reset(new EmbeddedWorkerDispatcher()); |
678 | 677 |
679 // Note: This may reorder messages from the ResourceDispatcher with respect to | 678 // Note: This may reorder messages from the ResourceDispatcher with respect to |
680 // other subsystems. | 679 // other subsystems. |
681 resource_dispatch_throttler_.reset(new ResourceDispatchThrottler( | 680 resource_dispatch_throttler_.reset(new ResourceDispatchThrottler( |
682 static_cast<RenderThread*>(this), renderer_scheduler_.get(), | 681 static_cast<RenderThread*>(this), renderer_scheduler_.get(), |
683 base::TimeDelta::FromSecondsD(kThrottledResourceRequestFlushPeriodS), | 682 base::TimeDelta::FromSecondsD(kThrottledResourceRequestFlushPeriodS), |
684 kMaxResourceRequestsPerFlushWhenThrottled)); | 683 kMaxResourceRequestsPerFlushWhenThrottled)); |
(...skipping 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2478 } | 2477 } |
2479 } | 2478 } |
2480 | 2479 |
2481 void RenderThreadImpl::OnRendererInterfaceRequest( | 2480 void RenderThreadImpl::OnRendererInterfaceRequest( |
2482 mojom::RendererAssociatedRequest request) { | 2481 mojom::RendererAssociatedRequest request) { |
2483 DCHECK(!renderer_binding_.is_bound()); | 2482 DCHECK(!renderer_binding_.is_bound()); |
2484 renderer_binding_.Bind(std::move(request)); | 2483 renderer_binding_.Bind(std::move(request)); |
2485 } | 2484 } |
2486 | 2485 |
2487 } // namespace content | 2486 } // namespace content |
OLD | NEW |