// third_party/blink/public/mojom/content_index/content_index.mojom-blink-test-utils.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_CONTENT_INDEX_CONTENT_INDEX_MOJOM_BLINK_TEST_UTILS_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_CONTENT_INDEX_CONTENT_INDEX_MOJOM_BLINK_TEST_UTILS_H_

#include "third_party/blink/public/mojom/content_index/content_index.mojom-blink.h"
#include "third_party/blink/renderer/platform/platform_export.h"


namespace blink::mojom::blink {


class PLATFORM_EXPORT ContentIndexServiceInterceptorForTesting : public ContentIndexService {
  virtual ContentIndexService* GetForwardingInterface() = 0;
  void GetIconSizes(ContentCategory category, GetIconSizesCallback callback) override;
  void Add(int64_t service_worker_registration_id, ContentDescriptionPtr description, const ::blink::Vector<::SkBitmap>& icon, const ::blink::KURL& launchUrl, AddCallback callback) override;
  void Delete(int64_t service_worker_registration_id, const ::blink::String& id, DeleteCallback callback) override;
  void GetDescriptions(int64_t service_worker_registration_id, GetDescriptionsCallback callback) override;
};
class PLATFORM_EXPORT ContentIndexServiceAsyncWaiter {
 public:
  explicit ContentIndexServiceAsyncWaiter(ContentIndexService* proxy);

  ContentIndexServiceAsyncWaiter(const ContentIndexServiceAsyncWaiter&) = delete;
  ContentIndexServiceAsyncWaiter& operator=(const ContentIndexServiceAsyncWaiter&) = delete;

  ~ContentIndexServiceAsyncWaiter();
  void GetIconSizes(
      ContentCategory category, ::blink::Vector<::gfx::Size>* out_icon_sizes);
  ::blink::Vector<::gfx::Size> GetIconSizes(ContentCategory category);
  void Add(
      int64_t service_worker_registration_id, ContentDescriptionPtr description, const ::blink::Vector<::SkBitmap>& icon, const ::blink::KURL& launchUrl, ContentIndexError* out_error);
  ContentIndexError Add(int64_t service_worker_registration_id, ContentDescriptionPtr description, const ::blink::Vector<::SkBitmap>& icon, const ::blink::KURL& launchUrl);
  void Delete(
      int64_t service_worker_registration_id, const ::blink::String& id, ContentIndexError* out_error);
  ContentIndexError Delete(int64_t service_worker_registration_id, const ::blink::String& id);
  void GetDescriptions(
      int64_t service_worker_registration_id, ContentIndexError* out_error, ::blink::Vector<ContentDescriptionPtr>* out_descriptions);
  

 private:
  ContentIndexService* const proxy_;
};




}  // blink::mojom::blink

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_CONTENT_INDEX_CONTENT_INDEX_MOJOM_BLINK_TEST_UTILS_H_