Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Unified Diff: media/base/overlay_info.h

Issue 2849043002: Send AndroidOverlay routing token from WMPI to AVDA. (Closed)
Patch Set: merged HaveOverlayInfo and SendOverlayInfo Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/overlay_info.h
diff --git a/media/base/overlay_info.h b/media/base/overlay_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..fb21f0b4b8ddddc9c083c8393dfddffb83ee7dd3
--- /dev/null
+++ b/media/base/overlay_info.h
@@ -0,0 +1,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_OVERLAY_INFORMATION_H_
tguilbert 2017/05/12 21:11:11 NIT: s/INFORMATION/INFO
liberato (no reviews please) 2017/05/12 21:42:50 Done.
+#define MEDIA_BASE_OVERLAY_INFORMATION_H_
+
+#include "base/callback.h"
+#include "base/macros.h"
+#include "base/optional.h"
+#include "base/unguessable_token.h"
+
+namespace media {
+
+// Request information to construct an overlay. This can be either a surface_id
+// or an AndroidOverlay routing token.
+using ProvideOverlayInfoCB =
+ base::Callback<void(int, const base::Optional<base::UnguessableToken>&)>;
+using RequestOverlayInfoCB =
+ base::Callback<void(bool, const ProvideOverlayInfoCB&)>;
+
+} // namespace media
+
+#endif // MEDIA_BASE_OVERLAY_INFORMATION_H_

Powered by Google App Engine
This is Rietveld 408576698