1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ash / public / cpp / assistant / assistant_interface_binder.h [blame]
// 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 ASH_PUBLIC_CPP_ASSISTANT_ASSISTANT_INTERFACE_BINDER_H_
#define ASH_PUBLIC_CPP_ASSISTANT_ASSISTANT_INTERFACE_BINDER_H_
#include "ash/public/cpp/ash_public_export.h"
#include "ash/public/mojom/assistant_volume_control.mojom.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
namespace ash {
// An interface for binding Ash-provided client APIs needed by the Assistant
// service.
class ASH_PUBLIC_EXPORT AssistantInterfaceBinder {
public:
static AssistantInterfaceBinder* GetInstance();
static void SetInstance(AssistantInterfaceBinder* binder);
virtual void BindVolumeControl(
mojo::PendingReceiver<mojom::AssistantVolumeControl> receiver) = 0;
protected:
AssistantInterfaceBinder();
virtual ~AssistantInterfaceBinder();
};
} // namespace ash
#endif // ASH_PUBLIC_CPP_ASSISTANT_ASSISTANT_INTERFACE_BINDER_H_