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 CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "ui/gfx/native_widget_types.h"
23 class GLContextLostListener
;
25 class ImageTransportFactoryAndroidObserver
{
27 virtual ~ImageTransportFactoryAndroidObserver() {}
28 virtual void OnLostResources() = 0;
31 class ImageTransportFactoryAndroid
{
33 virtual ~ImageTransportFactoryAndroid();
35 static ImageTransportFactoryAndroid
* GetInstance();
37 virtual GLHelper
* GetGLHelper() = 0;
38 virtual uint32
GetChannelID() = 0;
40 static void AddObserver(ImageTransportFactoryAndroidObserver
* observer
);
41 static void RemoveObserver(ImageTransportFactoryAndroidObserver
* observer
);
44 ImageTransportFactoryAndroid();
46 scoped_ptr
<GLContextLostListener
> context_lost_listener_
;
49 } // namespace content
51 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_