[MediaRouter] Update MR-2-Extension's PostMessage to return boolean.
[chromium-blink-merge.git] / chromecast / media / cma / pipeline / video_pipeline_client.h
blob105b8a2fe1154f4dc5ee02c0fd3df5d7143bed1f
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_VIDEO_PIPELINE_CLIENT_H_
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_VIDEO_PIPELINE_CLIENT_H_
8 #include "base/callback.h"
9 #include "chromecast/media/cma/pipeline/av_pipeline_client.h"
11 namespace gfx {
12 class Size;
15 namespace chromecast {
16 namespace media {
18 struct VideoPipelineClient {
19 typedef base::Callback<void(
20 const gfx::Size& natural_size)> NaturalSizeChangedCB;
22 VideoPipelineClient();
23 ~VideoPipelineClient();
25 // All the default callbacks.
26 AvPipelineClient av_pipeline_client;
28 // Video resolution change notification.
29 NaturalSizeChangedCB natural_size_changed_cb;
32 } // namespace media
33 } // namespace chromecast
35 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_VIDEO_PIPELINE_CLIENT_H_