| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 indexeddb_domain_(this), | 52 indexeddb_domain_(this), |
| 53 input_domain_(this), | 53 input_domain_(this), |
| 54 inspector_domain_(this), | 54 inspector_domain_(this), |
| 55 io_domain_(this), | 55 io_domain_(this), |
| 56 layer_tree_domain_(this), | 56 layer_tree_domain_(this), |
| 57 log_domain_(this), | 57 log_domain_(this), |
| 58 memory_domain_(this), | 58 memory_domain_(this), |
| 59 network_domain_(this), | 59 network_domain_(this), |
| 60 page_domain_(this), | 60 page_domain_(this), |
| 61 profiler_domain_(this), | 61 profiler_domain_(this), |
| 62 rendering_domain_(this), | |
| 63 runtime_domain_(this), | 62 runtime_domain_(this), |
| 64 security_domain_(this), | 63 security_domain_(this), |
| 65 service_worker_domain_(this), | 64 service_worker_domain_(this), |
| 66 target_domain_(this), | 65 target_domain_(this), |
| 67 tracing_domain_(this), | 66 tracing_domain_(this), |
| 68 browser_main_thread_(content::BrowserThread::GetTaskRunnerForThread( | 67 browser_main_thread_(content::BrowserThread::GetTaskRunnerForThread( |
| 69 content::BrowserThread::UI)), | 68 content::BrowserThread::UI)), |
| 70 weak_ptr_factory_(this) {} | 69 weak_ptr_factory_(this) {} |
| 71 | 70 |
| 72 HeadlessDevToolsClientImpl::~HeadlessDevToolsClientImpl() {} | 71 HeadlessDevToolsClientImpl::~HeadlessDevToolsClientImpl() {} |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 } | 321 } |
| 323 | 322 |
| 324 page::Domain* HeadlessDevToolsClientImpl::GetPage() { | 323 page::Domain* HeadlessDevToolsClientImpl::GetPage() { |
| 325 return &page_domain_; | 324 return &page_domain_; |
| 326 } | 325 } |
| 327 | 326 |
| 328 profiler::Domain* HeadlessDevToolsClientImpl::GetProfiler() { | 327 profiler::Domain* HeadlessDevToolsClientImpl::GetProfiler() { |
| 329 return &profiler_domain_; | 328 return &profiler_domain_; |
| 330 } | 329 } |
| 331 | 330 |
| 332 rendering::Domain* HeadlessDevToolsClientImpl::GetRendering() { | |
| 333 return &rendering_domain_; | |
| 334 } | |
| 335 | |
| 336 runtime::Domain* HeadlessDevToolsClientImpl::GetRuntime() { | 331 runtime::Domain* HeadlessDevToolsClientImpl::GetRuntime() { |
| 337 return &runtime_domain_; | 332 return &runtime_domain_; |
| 338 } | 333 } |
| 339 | 334 |
| 340 security::Domain* HeadlessDevToolsClientImpl::GetSecurity() { | 335 security::Domain* HeadlessDevToolsClientImpl::GetSecurity() { |
| 341 return &security_domain_; | 336 return &security_domain_; |
| 342 } | 337 } |
| 343 | 338 |
| 344 service_worker::Domain* HeadlessDevToolsClientImpl::GetServiceWorker() { | 339 service_worker::Domain* HeadlessDevToolsClientImpl::GetServiceWorker() { |
| 345 return &service_worker_domain_; | 340 return &service_worker_domain_; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 HeadlessDevToolsClientImpl::Callback::Callback( | 406 HeadlessDevToolsClientImpl::Callback::Callback( |
| 412 base::Callback<void(const base::Value&)> callback) | 407 base::Callback<void(const base::Value&)> callback) |
| 413 : callback_with_result(callback) {} | 408 : callback_with_result(callback) {} |
| 414 | 409 |
| 415 HeadlessDevToolsClientImpl::Callback::~Callback() {} | 410 HeadlessDevToolsClientImpl::Callback::~Callback() {} |
| 416 | 411 |
| 417 HeadlessDevToolsClientImpl::Callback& HeadlessDevToolsClientImpl::Callback:: | 412 HeadlessDevToolsClientImpl::Callback& HeadlessDevToolsClientImpl::Callback:: |
| 418 operator=(Callback&& other) = default; | 413 operator=(Callback&& other) = default; |
| 419 | 414 |
| 420 } // namespace headless | 415 } // namespace headless |
| OLD | NEW |