// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_MEDIA_ROUTER_LOGGER_LIST_H_ #define CHROME_BROWSER_MEDIA_ROUTER_LOGGER_LIST_H_ #include <set> #include "components/media_router/browser/logger_impl.h" #include "content/public/browser/browser_thread.h" namespace media_router { // This class uses a list of LoggerImpl instances to handle logging from within // MediaSinkService component. It allows a client to log to multiple LoggerImpl // instances at once, where each instance is typically associated with a // Profile. It is used as a singleton that is never freed. All methods must be // called on the UI thread except for GetInstance() and Log() as it also handles // logging for MediaSinkService classes that are on IO thread. class LoggerList { … }; } // namespace media_router #endif // CHROME_BROWSER_MEDIA_ROUTER_LOGGER_LIST_H_