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

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

Issue 2590293003: [DevTools] Rework DevToolsSession interaction with domain handlers. (Closed)
Patch Set: addressed comments 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/inspector_handler.h" 5 #include "content/browser/devtools/protocol/inspector_handler.h"
6 6
7 #include "content/browser/frame_host/render_frame_host_impl.h" 7 #include "content/browser/frame_host/render_frame_host_impl.h"
8 8
9 namespace content { 9 namespace content {
10 namespace protocol { 10 namespace protocol {
11 11
12 InspectorHandler::InspectorHandler() 12 InspectorHandler::InspectorHandler()
13 : host_(nullptr) { 13 : DevToolsDomainHandler(Inspector::Metainfo::domainName),
14 host_(nullptr) {
14 } 15 }
15 16
16 InspectorHandler::~InspectorHandler() { 17 InspectorHandler::~InspectorHandler() {
17 } 18 }
18 19
19 void InspectorHandler::Wire(UberDispatcher* dispatcher) { 20 void InspectorHandler::Wire(UberDispatcher* dispatcher) {
20 frontend_.reset(new Inspector::Frontend(dispatcher->channel())); 21 frontend_.reset(new Inspector::Frontend(dispatcher->channel()));
21 Inspector::Dispatcher::wire(dispatcher, this); 22 Inspector::Dispatcher::wire(dispatcher, this);
22 } 23 }
23 24
(...skipping 14 matching lines...) Expand all
38 frontend_->TargetCrashed(); 39 frontend_->TargetCrashed();
39 return Response::OK(); 40 return Response::OK();
40 } 41 }
41 42
42 Response InspectorHandler::Disable() { 43 Response InspectorHandler::Disable() {
43 return Response::OK(); 44 return Response::OK();
44 } 45 }
45 46
46 } // namespace protocol 47 } // namespace protocol
47 } // namespace content 48 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698