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

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

Issue 2685533003: Revert of Do not block in SimpleThread::Start(). (Closed)
Patch Set: Created 3 years, 10 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
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 <utility> 10 #include <utility>
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 GetInterfaceRegistry()->AddInterface( 881 GetInterfaceRegistry()->AddInterface(
882 base::Bind(&EmbeddedWorkerInstanceClientImpl::Create, 882 base::Bind(&EmbeddedWorkerInstanceClientImpl::Create,
883 base::Unretained(embedded_worker_dispatcher_.get()))); 883 base::Unretained(embedded_worker_dispatcher_.get())));
884 884
885 GetRemoteInterfaces()->GetInterface( 885 GetRemoteInterfaces()->GetInterface(
886 mojo::MakeRequest(&storage_partition_service_)); 886 mojo::MakeRequest(&storage_partition_service_));
887 887
888 #if defined(OS_LINUX) 888 #if defined(OS_LINUX)
889 ChildProcess::current()->SetIOThreadPriority(base::ThreadPriority::DISPLAY); 889 ChildProcess::current()->SetIOThreadPriority(base::ThreadPriority::DISPLAY);
890 ChildThreadImpl::current()->SetThreadPriority( 890 ChildThreadImpl::current()->SetThreadPriority(
891 categorized_worker_pool_->GetBackgroundWorkerThreadId(), 891 categorized_worker_pool_->background_worker_thread_id(),
892 base::ThreadPriority::BACKGROUND); 892 base::ThreadPriority::BACKGROUND);
893 #endif 893 #endif
894 894
895 record_purge_suspend_metric_closure_.Reset(base::Bind( 895 record_purge_suspend_metric_closure_.Reset(base::Bind(
896 &RenderThreadImpl::RecordPurgeAndSuspendMetrics, base::Unretained(this))); 896 &RenderThreadImpl::RecordPurgeAndSuspendMetrics, base::Unretained(this)));
897 record_purge_suspend_growth_metric_closure_.Reset( 897 record_purge_suspend_growth_metric_closure_.Reset(
898 base::Bind(&RenderThreadImpl::RecordPurgeAndSuspendMemoryGrowthMetrics, 898 base::Bind(&RenderThreadImpl::RecordPurgeAndSuspendMemoryGrowthMetrics,
899 base::Unretained(this))); 899 base::Unretained(this)));
900 900
901 base::MemoryCoordinatorClientRegistry::GetInstance()->Register(this); 901 base::MemoryCoordinatorClientRegistry::GetInstance()->Register(this);
(...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after
2440 } 2440 }
2441 } 2441 }
2442 2442
2443 void RenderThreadImpl::OnRendererInterfaceRequest( 2443 void RenderThreadImpl::OnRendererInterfaceRequest(
2444 mojom::RendererAssociatedRequest request) { 2444 mojom::RendererAssociatedRequest request) {
2445 DCHECK(!renderer_binding_.is_bound()); 2445 DCHECK(!renderer_binding_.is_bound());
2446 renderer_binding_.Bind(std::move(request)); 2446 renderer_binding_.Bind(std::move(request));
2447 } 2447 }
2448 2448
2449 } // namespace content 2449 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/categorized_worker_pool.cc ('k') | media/audio/win/audio_low_latency_output_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698