Display new Autofill UI Contents in Views
[chromium-blink-merge.git] / webkit / support / test_stream_texture_factory_android.h
blob53a05760ee17b6e224a074f463a04752b270d102
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
3 // found in the LICENSE file.
5 #ifndef WEBKIT_SUPPORT_TEST_STREAM_TEXTURE_FACTORY_ANDROID_H_
6 #define WEBKIT_SUPPORT_TEST_STREAM_TEXTURE_FACTORY_ANDROID_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "webkit/media/android/stream_texture_factory_android.h"
12 namespace webkit_support {
14 // An implementation of StreamTextureFactory for tests.
15 class TestStreamTextureFactory
16 : public webkit_media::StreamTextureFactory {
17 public:
18 TestStreamTextureFactory() { }
19 virtual ~TestStreamTextureFactory() { }
21 // webkit_media::StreamTextureFactory implementation:
22 virtual webkit_media::StreamTextureProxy* CreateProxy() OVERRIDE;
24 virtual void EstablishPeer(int stream_id, int player_id) OVERRIDE { }
26 virtual unsigned CreateStreamTexture(unsigned* texture_id) OVERRIDE;
28 virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE;
30 private:
31 DISALLOW_COPY_AND_ASSIGN(TestStreamTextureFactory);
34 } // namespace webkit_support
36 #endif // WEBKIT_SUPPORT_TEST_STREAM_TEXTURE_FACTORY_ANDROID_H_