tile_service_factory_helper.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_TILE_SERVICE_FACTORY_HELPER_H_
  5. #define COMPONENTS_QUERY_TILES_TILE_SERVICE_FACTORY_HELPER_H_
  6. #include <memory>
  7. #include "base/files/file_path.h"
  8. #include "components/query_tiles/internal/tile_store.h"
  9. namespace leveldb_proto {
  10. class ProtoDatabaseProvider;
  11. } // namespace leveldb_proto
  12. namespace image_fetcher {
  13. class ImageFetcherService;
  14. } // namespace image_fetcher
  15. namespace background_task {
  16. class BackgroundTaskScheduler;
  17. } // namespace background_task
  18. namespace network {
  19. class SharedURLLoaderFactory;
  20. } // namespace network
  21. class PrefService;
  22. namespace query_tiles {
  23. class TileService;
  24. std::unique_ptr<TileService> CreateTileService(
  25. image_fetcher::ImageFetcherService* image_fetcher_service,
  26. leveldb_proto::ProtoDatabaseProvider* db_provider,
  27. const base::FilePath& storage_dir,
  28. background_task::BackgroundTaskScheduler* scheduler,
  29. const std::string& accepted_language,
  30. const std::string& country_code,
  31. const std::string& api_key,
  32. const std::string& client_version,
  33. const std::string& default_server_url,
  34. scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
  35. PrefService* pref_service);
  36. } // namespace query_tiles
  37. #endif // COMPONENTS_QUERY_TILES_TILE_SERVICE_FACTORY_HELPER_H_