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

Unified Diff: content/browser/service_manager/common_browser_interfaces.cc

Issue 2833873003: WIP: The tracing service prototype
Patch Set: sync Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/tracing/trace_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_manager/common_browser_interfaces.cc
diff --git a/content/browser/service_manager/common_browser_interfaces.cc b/content/browser/service_manager/common_browser_interfaces.cc
index afc81bb970f948d0bee8c260fe983a680161024f..7154b48f639bdff4198b0e780dc8d9bc5bf76c93 100644
--- a/content/browser/service_manager/common_browser_interfaces.cc
+++ b/content/browser/service_manager/common_browser_interfaces.cc
@@ -23,6 +23,14 @@ namespace content {
namespace {
+void BindTracingAgentSetRequest(
+ const service_manager::BindSourceInfo& source_info,
+ resource_coordinator::tracing::mojom::AgentSetRequest request) {
+ auto* agent_set = resource_coordinator::tracing::AgentSetImpl::GetInstance();
+ if (agent_set)
+ agent_set->BindAgentSetRequest(source_info, std::move(request));
+}
+
void BindMemoryCoordinatorRequest(
const service_manager::BindSourceInfo& source_info,
memory_instrumentation::mojom::CoordinatorRequest request) {
@@ -35,6 +43,7 @@ class ConnectionFilterImpl : public ConnectionFilter {
public:
ConnectionFilterImpl()
: main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()) {
+ RegisterMainThreadInterface(base::Bind(&BindTracingAgentSetRequest));
RegisterMainThreadInterface(base::Bind(&BindMemoryCoordinatorRequest));
auto* browser_main_loop = BrowserMainLoop::GetInstance();
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/tracing/trace_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698