OLD | NEW |
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 Loading... |
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 |
OLD | NEW |