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

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

Issue 2651053004: Remove associated interface registration from ChannelProxy (Closed)
Patch Set: let's try that again 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
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | ipc/ipc_channel_mojo_unittest.cc » ('j') | 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 <utility> 10 #include <utility>
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 } 1476 }
1477 1477
1478 scoped_refptr<base::SingleThreadTaskRunner> 1478 scoped_refptr<base::SingleThreadTaskRunner>
1479 RenderThreadImpl::GetLoadingTaskRunner() { 1479 RenderThreadImpl::GetLoadingTaskRunner() {
1480 return renderer_scheduler_->LoadingTaskRunner(); 1480 return renderer_scheduler_->LoadingTaskRunner();
1481 } 1481 }
1482 1482
1483 void RenderThreadImpl::OnAssociatedInterfaceRequest( 1483 void RenderThreadImpl::OnAssociatedInterfaceRequest(
1484 const std::string& name, 1484 const std::string& name,
1485 mojo::ScopedInterfaceEndpointHandle handle) { 1485 mojo::ScopedInterfaceEndpointHandle handle) {
1486 associated_interfaces_.BindRequest(name, std::move(handle)); 1486 if (associated_interfaces_.CanBindRequest(name))
1487 associated_interfaces_.BindRequest(name, std::move(handle));
1488 else
1489 ChildThreadImpl::OnAssociatedInterfaceRequest(name, std::move(handle));
1487 } 1490 }
1488 1491
1489 bool RenderThreadImpl::IsGpuRasterizationForced() { 1492 bool RenderThreadImpl::IsGpuRasterizationForced() {
1490 return is_gpu_rasterization_forced_; 1493 return is_gpu_rasterization_forced_;
1491 } 1494 }
1492 1495
1493 bool RenderThreadImpl::IsGpuRasterizationEnabled() { 1496 bool RenderThreadImpl::IsGpuRasterizationEnabled() {
1494 return is_gpu_rasterization_enabled_; 1497 return is_gpu_rasterization_enabled_;
1495 } 1498 }
1496 1499
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
2429 } 2432 }
2430 } 2433 }
2431 2434
2432 void RenderThreadImpl::OnRendererInterfaceRequest( 2435 void RenderThreadImpl::OnRendererInterfaceRequest(
2433 mojom::RendererAssociatedRequest request) { 2436 mojom::RendererAssociatedRequest request) {
2434 DCHECK(!renderer_binding_.is_bound()); 2437 DCHECK(!renderer_binding_.is_bound());
2435 renderer_binding_.Bind(std::move(request)); 2438 renderer_binding_.Bind(std::move(request));
2436 } 2439 }
2437 2440
2438 } // namespace content 2441 } // namespace content
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | ipc/ipc_channel_mojo_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698