Add a FrameHostMsg_BeginNavigation IPC
[chromium-blink-merge.git] / content / browser / renderer_host / image_transport_factory_android.h
blob3be7a678e69821cbf47ddbf72c1cd414feac33e6
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"
11 namespace gfx {
12 class GLShareGroup;
15 namespace gpu {
16 namespace gles2 {
17 class GLES2Interface;
21 namespace content {
22 class GLHelper;
23 class GLContextLostListener;
25 class ImageTransportFactoryAndroidObserver {
26 public:
27 virtual ~ImageTransportFactoryAndroidObserver() {}
28 virtual void OnLostResources() = 0;
31 class ImageTransportFactoryAndroid {
32 public:
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);
43 protected:
44 ImageTransportFactoryAndroid();
46 scoped_ptr<GLContextLostListener> context_lost_listener_;
49 } // namespace content
51 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_