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

Side by Side Diff: content/common/gpu/gpu_video_service.h

Issue 6793054: Moved code that runs in both the browser and GPU process from content/gpu to content/common/gpu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_GPU_GPU_VIDEO_SERVICE_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_VIDEO_SERVICE_H_
6 #define CONTENT_GPU_GPU_VIDEO_SERVICE_H_ 6 #define CONTENT_COMMON_GPU_GPU_VIDEO_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "content/gpu/gpu_video_decoder.h" 12 #include "content/common/gpu/gpu_video_decoder.h"
13 #include "ipc/ipc_channel.h" 13 #include "ipc/ipc_channel.h"
14 14
15 class GpuChannel; 15 class GpuChannel;
16 16
17 class GpuVideoService : public IPC::Channel::Listener { 17 class GpuVideoService : public IPC::Channel::Listener {
18 public: 18 public:
19 static GpuVideoService* GetInstance(); 19 static GpuVideoService* GetInstance();
20 20
21 // IPC::Channel::Listener. 21 // IPC::Channel::Listener.
22 virtual void OnChannelConnected(int32 peer_pid); 22 virtual void OnChannelConnected(int32 peer_pid);
(...skipping 18 matching lines...) Expand all
41 std::map<int32, GpuVideoDecoderInfo> decoder_map_; 41 std::map<int32, GpuVideoDecoderInfo> decoder_map_;
42 42
43 // Specialize video service on different platform will override. 43 // Specialize video service on different platform will override.
44 virtual bool IntializeGpuVideoService(); 44 virtual bool IntializeGpuVideoService();
45 virtual bool UnintializeGpuVideoService(); 45 virtual bool UnintializeGpuVideoService();
46 46
47 friend struct DefaultSingletonTraits<GpuVideoService>; 47 friend struct DefaultSingletonTraits<GpuVideoService>;
48 DISALLOW_COPY_AND_ASSIGN(GpuVideoService); 48 DISALLOW_COPY_AND_ASSIGN(GpuVideoService);
49 }; 49 };
50 50
51 #endif // CONTENT_GPU_GPU_VIDEO_SERVICE_H_ 51 #endif // CONTENT_COMMON_GPU_GPU_VIDEO_SERVICE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_video_decoder_unittest.cc ('k') | content/common/gpu/gpu_video_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698