1 // Copyright 2018 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "services/tracing/public/cpp/base_agent.h" 6 7 #include <utility> 8 9 #include "base/bind.h" 10 #include "base/trace_event/trace_log.h" 11 #include "services/tracing/public/cpp/traced_process_impl.h" 12 #include "services/tracing/public/mojom/constants.mojom.h" 13 14 namespace tracing { 15 BaseAgent()16BaseAgent::BaseAgent() { 17 TracedProcessImpl::GetInstance()->RegisterAgent(this); 18 } 19 ~BaseAgent()20BaseAgent::~BaseAgent() { 21 TracedProcessImpl::GetInstance()->UnregisterAgent(this); 22 } 23 GetCategories(std::set<std::string> * category_set)24void BaseAgent::GetCategories(std::set<std::string>* category_set) {} 25 26 } // namespace tracing 27