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

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

Issue 251723002: Introduce EmbeddedWorkerDevToolsAgent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add virtual and OVVERRIDE Created 6 years, 7 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 <vector> 10 #include <vector>
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 } 657 }
658 658
659 void RenderThreadImpl::AddRoute(int32 routing_id, IPC::Listener* listener) { 659 void RenderThreadImpl::AddRoute(int32 routing_id, IPC::Listener* listener) {
660 ChildThread::GetRouter()->AddRoute(routing_id, listener); 660 ChildThread::GetRouter()->AddRoute(routing_id, listener);
661 } 661 }
662 662
663 void RenderThreadImpl::RemoveRoute(int32 routing_id) { 663 void RenderThreadImpl::RemoveRoute(int32 routing_id) {
664 ChildThread::GetRouter()->RemoveRoute(routing_id); 664 ChildThread::GetRouter()->RemoveRoute(routing_id);
665 } 665 }
666 666
667 void RenderThreadImpl::AddSharedWorkerRoute(int32 routing_id, 667 void RenderThreadImpl::AddEmbeddedWorkerRoute(int32 routing_id,
668 IPC::Listener* listener) { 668 IPC::Listener* listener) {
669 AddRoute(routing_id, listener); 669 AddRoute(routing_id, listener);
670 if (devtools_agent_message_filter_.get()) { 670 if (devtools_agent_message_filter_.get()) {
671 devtools_agent_message_filter_->AddSharedWorkerRouteOnMainThread( 671 devtools_agent_message_filter_->AddEmbeddedWorkerRouteOnMainThread(
672 routing_id); 672 routing_id);
673 } 673 }
674 } 674 }
675 675
676 void RenderThreadImpl::RemoveSharedWorkerRoute(int32 routing_id) { 676 void RenderThreadImpl::RemoveEmbeddedWorkerRoute(int32 routing_id) {
677 RemoveRoute(routing_id); 677 RemoveRoute(routing_id);
678 if (devtools_agent_message_filter_.get()) { 678 if (devtools_agent_message_filter_.get()) {
679 devtools_agent_message_filter_->RemoveSharedWorkerRouteOnMainThread( 679 devtools_agent_message_filter_->RemoveEmbeddedWorkerRouteOnMainThread(
680 routing_id); 680 routing_id);
681 } 681 }
682 } 682 }
683 683
684 int RenderThreadImpl::GenerateRoutingID() { 684 int RenderThreadImpl::GenerateRoutingID() {
685 int routing_id = MSG_ROUTING_NONE; 685 int routing_id = MSG_ROUTING_NONE;
686 Send(new ViewHostMsg_GenerateRoutingID(&routing_id)); 686 Send(new ViewHostMsg_GenerateRoutingID(&routing_id));
687 return routing_id; 687 return routing_id;
688 } 688 }
689 689
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 hidden_widget_count_--; 1491 hidden_widget_count_--;
1492 1492
1493 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1493 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1494 return; 1494 return;
1495 } 1495 }
1496 1496
1497 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1497 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1498 } 1498 }
1499 1499
1500 } // namespace content 1500 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/renderer/service_worker/embedded_worker_devtools_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698