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

Side by Side Diff: content/browser/devtools/protocol/target_handler.cc

Issue 2590293003: [DevTools] Rework DevToolsSession interaction with domain handlers. (Closed)
Patch Set: Created 3 years, 12 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/browser/devtools/protocol/target_handler.h" 5 #include "content/browser/devtools/protocol/target_handler.h"
6 6
7 #include "content/browser/devtools/devtools_manager.h" 7 #include "content/browser/devtools/devtools_manager.h"
8 #include "content/browser/devtools/service_worker_devtools_agent_host.h" 8 #include "content/browser/devtools/service_worker_devtools_agent_host.h"
9 #include "content/browser/frame_host/frame_tree.h" 9 #include "content/browser/frame_host/frame_tree.h"
10 #include "content/browser/frame_host/frame_tree_node.h" 10 #include "content/browser/frame_host/frame_tree_node.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 .SetTargetId(host->GetId()) 86 .SetTargetId(host->GetId())
87 .SetTitle(host->GetTitle()) 87 .SetTitle(host->GetTitle())
88 .SetUrl(host->GetURL().spec()) 88 .SetUrl(host->GetURL().spec())
89 .SetType(host->GetType()) 89 .SetType(host->GetType())
90 .Build(); 90 .Build();
91 } 91 }
92 92
93 } // namespace 93 } // namespace
94 94
95 TargetHandler::TargetHandler() 95 TargetHandler::TargetHandler()
96 : discover_(false), 96 : DevToolsDomainHandler(Target::Metainfo::domainName),
97 discover_(false),
97 auto_attach_(false), 98 auto_attach_(false),
98 wait_for_debugger_on_start_(false), 99 wait_for_debugger_on_start_(false),
99 attach_to_frames_(false), 100 attach_to_frames_(false),
100 render_frame_host_(nullptr) { 101 render_frame_host_(nullptr) {
101 } 102 }
102 103
103 TargetHandler::~TargetHandler() { 104 TargetHandler::~TargetHandler() {
104 } 105 }
105 106
106 void TargetHandler::Wire(UberDispatcher* dispatcher) { 107 void TargetHandler::Wire(UberDispatcher* dispatcher) {
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 UpdateServiceWorkers(); 449 UpdateServiceWorkers();
449 } 450 }
450 451
451 void TargetHandler::WorkerDestroyed( 452 void TargetHandler::WorkerDestroyed(
452 ServiceWorkerDevToolsAgentHost* host) { 453 ServiceWorkerDevToolsAgentHost* host) {
453 UpdateServiceWorkers(); 454 UpdateServiceWorkers();
454 } 455 }
455 456
456 } // namespace protocol 457 } // namespace protocol
457 } // namespace content 458 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698