log_sink.h 835 B

123456789101112131415161718192021222324252627
  1. // Copyright 2020 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. #ifndef COMPONENTS_QUERY_TILES_INTERNAL_LOG_SINK_H_
  5. #define COMPONENTS_QUERY_TILES_INTERNAL_LOG_SINK_H_
  6. #include "components/query_tiles/internal/tile_group.h"
  7. #include "components/query_tiles/internal/tile_types.h"
  8. namespace query_tiles {
  9. // A destination for all interesting events from internal components.
  10. class LogSink {
  11. public:
  12. virtual ~LogSink() = default;
  13. // To be called when status of fetcher or manager changes.
  14. virtual void OnServiceStatusChanged() = 0;
  15. // To be called when the tile gorup raw data is available.
  16. virtual void OnTileDataAvailable() = 0;
  17. };
  18. } // namespace query_tiles
  19. #endif // COMPONENTS_QUERY_TILES_INTERNAL_LOG_SINK_H_