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

Side by Side Diff: headless/lib/browser/headless_devtools_client_impl.cc

Issue 2185943003: Support C++ bindings for the DevTools Log Domain in headless_lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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 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/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 dom_debugger_domain_(this), 43 dom_debugger_domain_(this),
44 dom_domain_(this), 44 dom_domain_(this),
45 dom_storage_domain_(this), 45 dom_storage_domain_(this),
46 emulation_domain_(this), 46 emulation_domain_(this),
47 heap_profiler_domain_(this), 47 heap_profiler_domain_(this),
48 indexeddb_domain_(this), 48 indexeddb_domain_(this),
49 input_domain_(this), 49 input_domain_(this),
50 inspector_domain_(this), 50 inspector_domain_(this),
51 io_domain_(this), 51 io_domain_(this),
52 layer_tree_domain_(this), 52 layer_tree_domain_(this),
53 log_domain_(this),
53 memory_domain_(this), 54 memory_domain_(this),
54 network_domain_(this), 55 network_domain_(this),
55 page_domain_(this), 56 page_domain_(this),
56 profiler_domain_(this), 57 profiler_domain_(this),
57 rendering_domain_(this), 58 rendering_domain_(this),
58 runtime_domain_(this), 59 runtime_domain_(this),
59 security_domain_(this), 60 security_domain_(this),
60 service_worker_domain_(this), 61 service_worker_domain_(this),
61 tracing_domain_(this), 62 tracing_domain_(this),
62 worker_domain_(this) {} 63 worker_domain_(this) {}
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 } 221 }
221 222
222 io::Domain* HeadlessDevToolsClientImpl::GetIO() { 223 io::Domain* HeadlessDevToolsClientImpl::GetIO() {
223 return &io_domain_; 224 return &io_domain_;
224 } 225 }
225 226
226 layer_tree::Domain* HeadlessDevToolsClientImpl::GetLayerTree() { 227 layer_tree::Domain* HeadlessDevToolsClientImpl::GetLayerTree() {
227 return &layer_tree_domain_; 228 return &layer_tree_domain_;
228 } 229 }
229 230
231 log::Domain* HeadlessDevToolsClientImpl::GetLog() {
232 return &log_domain_;
233 }
234
230 memory::Domain* HeadlessDevToolsClientImpl::GetMemory() { 235 memory::Domain* HeadlessDevToolsClientImpl::GetMemory() {
231 return &memory_domain_; 236 return &memory_domain_;
232 } 237 }
233 238
234 network::Domain* HeadlessDevToolsClientImpl::GetNetwork() { 239 network::Domain* HeadlessDevToolsClientImpl::GetNetwork() {
235 return &network_domain_; 240 return &network_domain_;
236 } 241 }
237 242
238 page::Domain* HeadlessDevToolsClientImpl::GetPage() { 243 page::Domain* HeadlessDevToolsClientImpl::GetPage() {
239 return &page_domain_; 244 return &page_domain_;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 HeadlessDevToolsClientImpl::Callback::Callback( 347 HeadlessDevToolsClientImpl::Callback::Callback(
343 base::Callback<void(const base::Value&)> callback) 348 base::Callback<void(const base::Value&)> callback)
344 : callback_with_result(callback) {} 349 : callback_with_result(callback) {}
345 350
346 HeadlessDevToolsClientImpl::Callback::~Callback() {} 351 HeadlessDevToolsClientImpl::Callback::~Callback() {}
347 352
348 HeadlessDevToolsClientImpl::Callback& HeadlessDevToolsClientImpl::Callback:: 353 HeadlessDevToolsClientImpl::Callback& HeadlessDevToolsClientImpl::Callback::
349 operator=(Callback&& other) = default; 354 operator=(Callback&& other) = default;
350 355
351 } // namespace headless 356 } // namespace headless
OLDNEW
« no previous file with comments | « headless/lib/browser/headless_devtools_client_impl.h ('k') | headless/public/headless_devtools_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698