| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_BASE_ROUTING_TOKEN_CALLBACK_H_ | 5 #ifndef MEDIA_BASE_ROUTING_TOKEN_CALLBACK_H_ |
| 6 #define MEDIA_BASE_ROUTING_TOKEN_CALLBACK_H_ | 6 #define MEDIA_BASE_ROUTING_TOKEN_CALLBACK_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/unguessable_token.h" | 9 #include "base/unguessable_token.h" |
| 10 | 10 |
| 11 namespace media { | 11 namespace media { |
| 12 | 12 |
| 13 // Handy callback type to provide a routing token. | 13 // Handy callback type to provide a routing token. |
| 14 using RoutingTokenCallback = | 14 using RoutingTokenCallback = |
| 15 base::Callback<void(const base::UnguessableToken&)>; | 15 base::Callback<void(const base::UnguessableToken&)>; |
| 16 | 16 |
| 17 // Callback to register a RoutingTokenCallback with something that can provide |
| 18 // it. For example, RenderFrame(Impl) will provide this, while WMPI can choose |
| 19 // to call it if it would like to be called back with a routing token. |
| 20 using RequestRoutingTokenCallback = base::Callback<void(RoutingTokenCallback)>; |
| 21 |
| 17 } // namespace media | 22 } // namespace media |
| 18 | 23 |
| 19 #endif // MEDIA_BASE_ANDROID_ROUTING_TOKEN_CALLBACK_H_ | 24 #endif // MEDIA_BASE_ANDROID_ROUTING_TOKEN_CALLBACK_H_ |
| OLD | NEW |