| OLD | NEW |
| 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 "headless/lib/browser/headless_devtools_client_impl.h" | 5 #include "headless/lib/browser/headless_devtools_client_impl.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 accessibility_domain_(this), | 38 accessibility_domain_(this), |
| 39 animation_domain_(this), | 39 animation_domain_(this), |
| 40 application_cache_domain_(this), | 40 application_cache_domain_(this), |
| 41 browser_domain_(this), | 41 browser_domain_(this), |
| 42 cache_storage_domain_(this), | 42 cache_storage_domain_(this), |
| 43 console_domain_(this), | 43 console_domain_(this), |
| 44 css_domain_(this), | 44 css_domain_(this), |
| 45 database_domain_(this), | 45 database_domain_(this), |
| 46 debugger_domain_(this), | 46 debugger_domain_(this), |
| 47 device_orientation_domain_(this), | 47 device_orientation_domain_(this), |
| 48 dom_domain_(this), |
| 48 dom_debugger_domain_(this), | 49 dom_debugger_domain_(this), |
| 49 dom_domain_(this), | 50 dom_snapshot_domain_(this), |
| 50 dom_storage_domain_(this), | 51 dom_storage_domain_(this), |
| 51 emulation_domain_(this), | 52 emulation_domain_(this), |
| 52 heap_profiler_domain_(this), | 53 heap_profiler_domain_(this), |
| 53 indexeddb_domain_(this), | 54 indexeddb_domain_(this), |
| 54 input_domain_(this), | 55 input_domain_(this), |
| 55 inspector_domain_(this), | 56 inspector_domain_(this), |
| 56 io_domain_(this), | 57 io_domain_(this), |
| 57 layer_tree_domain_(this), | 58 layer_tree_domain_(this), |
| 58 log_domain_(this), | 59 log_domain_(this), |
| 59 memory_domain_(this), | 60 memory_domain_(this), |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 } | 267 } |
| 267 | 268 |
| 268 debugger::Domain* HeadlessDevToolsClientImpl::GetDebugger() { | 269 debugger::Domain* HeadlessDevToolsClientImpl::GetDebugger() { |
| 269 return &debugger_domain_; | 270 return &debugger_domain_; |
| 270 } | 271 } |
| 271 | 272 |
| 272 device_orientation::Domain* HeadlessDevToolsClientImpl::GetDeviceOrientation() { | 273 device_orientation::Domain* HeadlessDevToolsClientImpl::GetDeviceOrientation() { |
| 273 return &device_orientation_domain_; | 274 return &device_orientation_domain_; |
| 274 } | 275 } |
| 275 | 276 |
| 277 dom::Domain* HeadlessDevToolsClientImpl::GetDOM() { |
| 278 return &dom_domain_; |
| 279 } |
| 280 |
| 276 dom_debugger::Domain* HeadlessDevToolsClientImpl::GetDOMDebugger() { | 281 dom_debugger::Domain* HeadlessDevToolsClientImpl::GetDOMDebugger() { |
| 277 return &dom_debugger_domain_; | 282 return &dom_debugger_domain_; |
| 278 } | 283 } |
| 279 | 284 |
| 280 dom::Domain* HeadlessDevToolsClientImpl::GetDOM() { | 285 dom_snapshot::Domain* HeadlessDevToolsClientImpl::GetDOMSnapshot() { |
| 281 return &dom_domain_; | 286 return &dom_snapshot_domain_; |
| 282 } | 287 } |
| 283 | 288 |
| 284 dom_storage::Domain* HeadlessDevToolsClientImpl::GetDOMStorage() { | 289 dom_storage::Domain* HeadlessDevToolsClientImpl::GetDOMStorage() { |
| 285 return &dom_storage_domain_; | 290 return &dom_storage_domain_; |
| 286 } | 291 } |
| 287 | 292 |
| 288 emulation::Domain* HeadlessDevToolsClientImpl::GetEmulation() { | 293 emulation::Domain* HeadlessDevToolsClientImpl::GetEmulation() { |
| 289 return &emulation_domain_; | 294 return &emulation_domain_; |
| 290 } | 295 } |
| 291 | 296 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 HeadlessDevToolsClientImpl::Callback::Callback( | 416 HeadlessDevToolsClientImpl::Callback::Callback( |
| 412 base::Callback<void(const base::Value&)> callback) | 417 base::Callback<void(const base::Value&)> callback) |
| 413 : callback_with_result(callback) {} | 418 : callback_with_result(callback) {} |
| 414 | 419 |
| 415 HeadlessDevToolsClientImpl::Callback::~Callback() {} | 420 HeadlessDevToolsClientImpl::Callback::~Callback() {} |
| 416 | 421 |
| 417 HeadlessDevToolsClientImpl::Callback& HeadlessDevToolsClientImpl::Callback:: | 422 HeadlessDevToolsClientImpl::Callback& HeadlessDevToolsClientImpl::Callback:: |
| 418 operator=(Callback&& other) = default; | 423 operator=(Callback&& other) = default; |
| 419 | 424 |
| 420 } // namespace headless | 425 } // namespace headless |
| OLD | NEW |