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

Side by Side Diff: content/renderer/media/pepper_platform_video_decoder_impl.h

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_MEDIA_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "media/video/video_decode_accelerator.h" 13 #include "media/video/video_decode_accelerator.h"
14 #include "webkit/plugins/ppapi/plugin_delegate.h" 14 #include "webkit/plugins/ppapi/plugin_delegate.h"
15 15
16 namespace content {
17
16 class PlatformVideoDecoderImpl 18 class PlatformVideoDecoderImpl
17 : public webkit::ppapi::PluginDelegate::PlatformVideoDecoder, 19 : public webkit::ppapi::PluginDelegate::PlatformVideoDecoder,
18 public media::VideoDecodeAccelerator::Client { 20 public media::VideoDecodeAccelerator::Client {
19 public: 21 public:
20 PlatformVideoDecoderImpl( 22 PlatformVideoDecoderImpl(
21 media::VideoDecodeAccelerator::Client* client, 23 media::VideoDecodeAccelerator::Client* client,
22 int32 command_buffer_route_id); 24 int32 command_buffer_route_id);
23 25
24 // PlatformVideoDecoder (a.k.a. VideoDecodeAccelerator) implementation. 26 // PlatformVideoDecoder (a.k.a. VideoDecodeAccelerator) implementation.
25 virtual bool Initialize(media::VideoCodecProfile profile) OVERRIDE; 27 virtual bool Initialize(media::VideoCodecProfile profile) OVERRIDE;
(...skipping 29 matching lines...) Expand all
55 media::VideoDecodeAccelerator::Client* client_; 57 media::VideoDecodeAccelerator::Client* client_;
56 58
57 // Route ID for the command buffer associated with video decoder's context. 59 // Route ID for the command buffer associated with video decoder's context.
58 int32 command_buffer_route_id_; 60 int32 command_buffer_route_id_;
59 61
60 // Holds a GpuVideoDecodeAcceleratorHost. 62 // Holds a GpuVideoDecodeAcceleratorHost.
61 scoped_ptr<media::VideoDecodeAccelerator> decoder_; 63 scoped_ptr<media::VideoDecodeAccelerator> decoder_;
62 64
63 DISALLOW_COPY_AND_ASSIGN(PlatformVideoDecoderImpl); 65 DISALLOW_COPY_AND_ASSIGN(PlatformVideoDecoderImpl);
64 }; 66 };
67
68 } // namespace content
69
65 #endif // CONTENT_RENDERER_MEDIA_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ 70 #endif // CONTENT_RENDERER_MEDIA_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698