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