| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 HeadlessDevToolsClientImpl::HeadlessDevToolsClientImpl() | 32 HeadlessDevToolsClientImpl::HeadlessDevToolsClientImpl() |
| 33 : agent_host_(nullptr), | 33 : agent_host_(nullptr), |
| 34 raw_protocol_listener_(nullptr), | 34 raw_protocol_listener_(nullptr), |
| 35 next_message_id_(0), | 35 next_message_id_(0), |
| 36 next_raw_message_id_(1), | 36 next_raw_message_id_(1), |
| 37 renderer_crashed_(false), | 37 renderer_crashed_(false), |
| 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 cache_storage_domain_(this), | 42 cache_storage_domain_(this), |
| 42 console_domain_(this), | 43 console_domain_(this), |
| 43 css_domain_(this), | 44 css_domain_(this), |
| 44 database_domain_(this), | 45 database_domain_(this), |
| 45 debugger_domain_(this), | 46 debugger_domain_(this), |
| 46 device_orientation_domain_(this), | 47 device_orientation_domain_(this), |
| 47 dom_debugger_domain_(this), | 48 dom_debugger_domain_(this), |
| 48 dom_domain_(this), | 49 dom_domain_(this), |
| 49 dom_storage_domain_(this), | 50 dom_storage_domain_(this), |
| 50 emulation_domain_(this), | 51 emulation_domain_(this), |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 } | 238 } |
| 238 | 239 |
| 239 animation::Domain* HeadlessDevToolsClientImpl::GetAnimation() { | 240 animation::Domain* HeadlessDevToolsClientImpl::GetAnimation() { |
| 240 return &animation_domain_; | 241 return &animation_domain_; |
| 241 } | 242 } |
| 242 | 243 |
| 243 application_cache::Domain* HeadlessDevToolsClientImpl::GetApplicationCache() { | 244 application_cache::Domain* HeadlessDevToolsClientImpl::GetApplicationCache() { |
| 244 return &application_cache_domain_; | 245 return &application_cache_domain_; |
| 245 } | 246 } |
| 246 | 247 |
| 248 browser::Domain* HeadlessDevToolsClientImpl::GetBrowser() { |
| 249 return &browser_domain_; |
| 250 } |
| 251 |
| 247 cache_storage::Domain* HeadlessDevToolsClientImpl::GetCacheStorage() { | 252 cache_storage::Domain* HeadlessDevToolsClientImpl::GetCacheStorage() { |
| 248 return &cache_storage_domain_; | 253 return &cache_storage_domain_; |
| 249 } | 254 } |
| 250 | 255 |
| 251 console::Domain* HeadlessDevToolsClientImpl::GetConsole() { | 256 console::Domain* HeadlessDevToolsClientImpl::GetConsole() { |
| 252 return &console_domain_; | 257 return &console_domain_; |
| 253 } | 258 } |
| 254 | 259 |
| 255 css::Domain* HeadlessDevToolsClientImpl::GetCSS() { | 260 css::Domain* HeadlessDevToolsClientImpl::GetCSS() { |
| 256 return &css_domain_; | 261 return &css_domain_; |
| (...skipping 149 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 |