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

Side by Side Diff: content/common/gpu/media/media_channel.h

Issue 1736643005: Decouple Media Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove base changes Created 4 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef CONTENT_COMMON_GPU_MEDIA_MEDIA_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_MEDIA_MEDIA_CHANNEL_H_
7
8 #include "content/common/gpu/media/gpu_jpeg_decode_accelerator.h"
9 #include "ipc/ipc_listener.h"
10 #include "ipc/ipc_sender.h"
11 #include "media/video/video_decode_accelerator.h"
12
13 namespace content {
14
15 class GpuChannel;
16 class GpuCommandBufferStub;
17
18 class MediaChannel : public IPC::Listener, public IPC::Sender {
19 public:
20 explicit MediaChannel(GpuChannel* channel);
21 ~MediaChannel() override;
22
23 // IPC::Sender implementation:
24 bool Send(IPC::Message* msg) override;
25
26 private:
27 // IPC::Listener implementation:
28 bool OnMessageReceived(const IPC::Message& message) override;
29
30 // Message handlers.
31 void OnCreateJpegDecoder(int32_t route_id, IPC::Message* reply_msg);
32 void OnCreateVideoDecoder(const IPC::Message& message);
33 void OnCreateVideoEncoder(const IPC::Message& message);
34
35 GpuChannel* const channel_;
36 scoped_ptr<GpuJpegDecodeAccelerator> jpeg_decoder_;
37 DISALLOW_COPY_AND_ASSIGN(MediaChannel);
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_COMMON_GPU_MEDIA_MEDIA_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698