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/dom_handler.h" | 5 #include "content/browser/devtools/protocol/dom_handler.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "content/browser/child_process_security_policy_impl.h" | 9 #include "content/browser/child_process_security_policy_impl.h" |
10 #include "content/browser/frame_host/render_frame_host_impl.h" | 10 #include "content/browser/frame_host/render_frame_host_impl.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 namespace protocol { | 13 namespace protocol { |
14 | 14 |
15 DOMHandler::DOMHandler() : host_(nullptr) { | 15 DOMHandler::DOMHandler() |
| 16 : DevToolsDomainHandler(DOM::Metainfo::domainName), |
| 17 host_(nullptr) { |
16 } | 18 } |
17 | 19 |
18 DOMHandler::~DOMHandler() { | 20 DOMHandler::~DOMHandler() { |
19 } | 21 } |
20 | 22 |
21 void DOMHandler::Wire(UberDispatcher* dispatcher) { | 23 void DOMHandler::Wire(UberDispatcher* dispatcher) { |
22 DOM::Dispatcher::wire(dispatcher, this); | 24 DOM::Dispatcher::wire(dispatcher, this); |
23 } | 25 } |
24 | 26 |
25 void DOMHandler::SetRenderFrameHost(RenderFrameHostImpl* host) { | 27 void DOMHandler::SetRenderFrameHost(RenderFrameHostImpl* host) { |
(...skipping 18 matching lines...) Expand all Loading... |
44 host_->GetProcess()->GetID(), | 46 host_->GetProcess()->GetID(), |
45 base::FilePath(files->get(i))); | 47 base::FilePath(files->get(i))); |
46 #endif // OS_WIN | 48 #endif // OS_WIN |
47 } | 49 } |
48 } | 50 } |
49 return Response::FallThrough(); | 51 return Response::FallThrough(); |
50 } | 52 } |
51 | 53 |
52 } // namespace protocol | 54 } // namespace protocol |
53 } // namespace content | 55 } // namespace content |
OLD | NEW |