blob: 8dbeb4afb0b8de266ed3fcff7efbb8d5733ab6d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright 2017 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 MEDIA_BASE_ROUTING_TOKEN_CALLBACK_H_
#define MEDIA_BASE_ROUTING_TOKEN_CALLBACK_H_
#include "base/callback.h"
#include "base/unguessable_token.h"
namespace media {
// Handy callback type to provide a routing token.
using RoutingTokenCallback =
base::Callback<void(const base::UnguessableToken&)>;
// Callback to register a RoutingTokenCallback with something that can provide
// it. For example, RenderFrame(Impl) will provide this, while WMPI can choose
// to call it if it would like to be called back with a routing token.
using RequestRoutingTokenCallback = base::Callback<void(RoutingTokenCallback)>;
} // namespace media
#endif // MEDIA_BASE_ANDROID_ROUTING_TOKEN_CALLBACK_H_
|