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

Side by Side Diff: content/renderer/media/stream_texture_factory_impl_android.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_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/renderer/gpu/stream_texture_host_android.h" 9 #include "content/renderer/gpu/stream_texture_host_android.h"
10 #include "webkit/media/android/stream_texture_factory_android.h" 10 #include "webkit/media/android/stream_texture_factory_android.h"
11 11
12 class GpuChannelHost;
13
14 namespace WebKit { 12 namespace WebKit {
15 class WebGraphicsContext3D; 13 class WebGraphicsContext3D;
16 } 14 }
17 15
18 namespace content { 16 namespace content {
17 class GpuChannelHost;
19 18
20 // The acutal implementation of StreamTextureFactory class. 19 // The acutal implementation of StreamTextureFactory class.
21 class StreamTextureFactoryImpl 20 class StreamTextureFactoryImpl
22 : public webkit_media::StreamTextureFactory { 21 : public webkit_media::StreamTextureFactory {
23 public: 22 public:
24 StreamTextureFactoryImpl(WebKit::WebGraphicsContext3D* context, 23 StreamTextureFactoryImpl(WebKit::WebGraphicsContext3D* context,
25 GpuChannelHost* channel, 24 GpuChannelHost* channel,
26 int view_id); 25 int view_id);
27 virtual ~StreamTextureFactoryImpl(); 26 virtual ~StreamTextureFactoryImpl();
28 27
29 // webkit_media::StreamTextureFactory implementation: 28 // webkit_media::StreamTextureFactory implementation:
30 virtual webkit_media::StreamTextureProxy* CreateProxy() OVERRIDE; 29 virtual webkit_media::StreamTextureProxy* CreateProxy() OVERRIDE;
31 30
32 virtual void EstablishPeer(int stream_id, int player_id) OVERRIDE; 31 virtual void EstablishPeer(int stream_id, int player_id) OVERRIDE;
33 32
34 virtual unsigned CreateStreamTexture(unsigned* texture_id) OVERRIDE; 33 virtual unsigned CreateStreamTexture(unsigned* texture_id) OVERRIDE;
35 virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE; 34 virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE;
36 35
37 private: 36 private:
38 WebKit::WebGraphicsContext3D* context_; 37 WebKit::WebGraphicsContext3D* context_;
39 scoped_refptr<GpuChannelHost> channel_; 38 scoped_refptr<GpuChannelHost> channel_;
40 int view_id_; 39 int view_id_;
41 DISALLOW_COPY_AND_ASSIGN(StreamTextureFactoryImpl); 40 DISALLOW_COPY_AND_ASSIGN(StreamTextureFactoryImpl);
42 }; 41 };
43 42
44 } // namespace content 43 } // namespace content
45 44
46 #endif // CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_ 45 #endif // CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698