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

Side by Side Diff: content/common/gpu/client/gpu_video_decode_accelerator_host.h

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros 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_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/threading/non_thread_safe.h" 11 #include "base/threading/non_thread_safe.h"
12 #include "ipc/ipc_listener.h" 12 #include "ipc/ipc_listener.h"
13 #include "media/video/video_decode_accelerator.h" 13 #include "media/video/video_decode_accelerator.h"
14 14
15 namespace content {
15 class GpuChannelHost; 16 class GpuChannelHost;
16 17
17 // This class is used to talk to VideoDecodeAccelerator in the Gpu process 18 // This class is used to talk to VideoDecodeAccelerator in the Gpu process
18 // through IPC messages. 19 // through IPC messages.
19 class GpuVideoDecodeAcceleratorHost 20 class GpuVideoDecodeAcceleratorHost
20 : public IPC::Listener, 21 : public IPC::Listener,
21 public media::VideoDecodeAccelerator, 22 public media::VideoDecodeAccelerator,
22 public base::NonThreadSafe { 23 public base::NonThreadSafe {
23 public: 24 public:
24 // |channel| is used to send IPC messages to GPU process. 25 // |channel| is used to send IPC messages to GPU process.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // process is vulnerable to GPU process crashing & being respawned, and 65 // process is vulnerable to GPU process crashing & being respawned, and
65 // attempting to use an outdated or reused route id. 66 // attempting to use an outdated or reused route id.
66 int32 decoder_route_id_; 67 int32 decoder_route_id_;
67 68
68 // Reference to the client that will receive callbacks from the decoder. 69 // Reference to the client that will receive callbacks from the decoder.
69 media::VideoDecodeAccelerator::Client* client_; 70 media::VideoDecodeAccelerator::Client* client_;
70 71
71 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 72 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
72 }; 73 };
73 74
75 } // namespace content
76
74 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 77 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.cc ('k') | content/common/gpu/client/gpu_video_decode_accelerator_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698