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

Side by Side Diff: chrome/renderer/gpu_video_decoder_host.h

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/gpu_channel_host.cc ('k') | chrome/renderer/gpu_video_decoder_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_GPU_VIDEO_DECODER_HOST_H_ 5 #ifndef CHROME_RENDERER_GPU_VIDEO_DECODER_HOST_H_
6 #define CHROME_RENDERER_GPU_VIDEO_DECODER_HOST_H_ 6 #define CHROME_RENDERER_GPU_VIDEO_DECODER_HOST_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // |message_loop_|. 43 // |message_loop_|.
44 GpuVideoDecoderHost(MessageRouter* router, 44 GpuVideoDecoderHost(MessageRouter* router,
45 IPC::Message::Sender* ipc_sender, 45 IPC::Message::Sender* ipc_sender,
46 int context_route_id, 46 int context_route_id,
47 int32 decoder_host_id); 47 int32 decoder_host_id);
48 virtual ~GpuVideoDecoderHost(); 48 virtual ~GpuVideoDecoderHost();
49 49
50 // IPC::Channel::Listener. 50 // IPC::Channel::Listener.
51 virtual void OnChannelConnected(int32 peer_pid) {} 51 virtual void OnChannelConnected(int32 peer_pid) {}
52 virtual void OnChannelError(); 52 virtual void OnChannelError();
53 virtual void OnMessageReceived(const IPC::Message& message); 53 virtual bool OnMessageReceived(const IPC::Message& message);
54 54
55 // media::VideoDecodeEngine implementation. 55 // media::VideoDecodeEngine implementation.
56 virtual void Initialize(MessageLoop* message_loop, 56 virtual void Initialize(MessageLoop* message_loop,
57 VideoDecodeEngine::EventHandler* event_handler, 57 VideoDecodeEngine::EventHandler* event_handler,
58 media::VideoDecodeContext* context, 58 media::VideoDecodeContext* context,
59 const media::VideoCodecConfig& config); 59 const media::VideoCodecConfig& config);
60 virtual void ConsumeVideoSample(scoped_refptr<Buffer> buffer); 60 virtual void ConsumeVideoSample(scoped_refptr<Buffer> buffer);
61 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> frame); 61 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> frame);
62 virtual void Uninitialize(); 62 virtual void Uninitialize();
63 virtual void Flush(); 63 virtual void Flush();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // The list of video frames allocated by VideoDecodeContext. 152 // The list of video frames allocated by VideoDecodeContext.
153 std::vector<scoped_refptr<media::VideoFrame> > video_frames_; 153 std::vector<scoped_refptr<media::VideoFrame> > video_frames_;
154 154
155 // The mapping between video frame ID and a video frame. 155 // The mapping between video frame ID and a video frame.
156 VideoFrameMap video_frame_map_; 156 VideoFrameMap video_frame_map_;
157 157
158 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoderHost); 158 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoderHost);
159 }; 159 };
160 160
161 #endif // CHROME_RENDERER_GPU_VIDEO_DECODER_HOST_H_ 161 #endif // CHROME_RENDERER_GPU_VIDEO_DECODER_HOST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/gpu_channel_host.cc ('k') | chrome/renderer/gpu_video_decoder_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698