12345678910111213141516171819202122232425262728293031323334 |
- // Copyright 2020 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef COMPONENTS_QUERY_TILES_INTERNAL_LOG_SOURCE_H_
- #define COMPONENTS_QUERY_TILES_INTERNAL_LOG_SOURCE_H_
- #include "components/query_tiles/internal/log_sink.h"
- #include "components/query_tiles/internal/tile_group.h"
- #include "components/query_tiles/internal/tile_types.h"
- #include "components/query_tiles/logger.h"
- #include "net/base/backoff_entry.h"
- namespace query_tiles {
- // A source for all relevant logging data. LoggerImpl will pull from an
- // instance of LogSource to push relevant log information to observers.
- class LogSource {
- public:
- virtual ~LogSource() = default;
- // Returns the TileFetcher status.
- virtual TileInfoRequestStatus GetFetcherStatus() = 0;
- // Returns the TileManager status.
- virtual TileGroupStatus GetGroupStatus() = 0;
- // Returns the pointer of TileGroup holds in memory. Nullptr if not exists.
- virtual TileGroup* GetTileGroup() = 0;
- };
- } // namespace query_tiles
- #endif // COMPONENTS_QUERY_TILES_INTERNAL_LOG_SOURCE_H_
|