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

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

Issue 2590293003: [DevTools] Rework DevToolsSession interaction with domain handlers. (Closed)
Patch Set: addressed comments Created 4 years 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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698