Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / content / browser / android / browser_surface_texture_manager.h
blob959d270548874b736c745db4a735cf4b5957967c
1 // Copyright 2014 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_ANDROID_BROWSER_SURFACE_TEXTURE_MANAGER_H_
6 #define CONTENT_BROWSER_ANDROID_BROWSER_SURFACE_TEXTURE_MANAGER_H_
8 #include "content/common/android/surface_texture_manager.h"
10 #include "content/common/android/surface_texture_peer.h"
12 namespace content {
14 class BrowserSurfaceTextureManager : public SurfaceTextureManager,
15 public SurfaceTexturePeer {
16 public:
17 BrowserSurfaceTextureManager();
18 ~BrowserSurfaceTextureManager() override;
20 // Overridden from SurfaceTextureManager:
21 void RegisterSurfaceTexture(int surface_texture_id,
22 int client_id,
23 gfx::SurfaceTexture* surface_texture) override;
24 void UnregisterSurfaceTexture(int surface_texture_id, int client_id) override;
25 gfx::AcceleratedWidget AcquireNativeWidgetForSurfaceTexture(
26 int surface_texture_id) override;
28 // Overridden from SurfaceTexturePeer:
29 void EstablishSurfaceTexturePeer(
30 base::ProcessHandle render_process_handle,
31 scoped_refptr<gfx::SurfaceTexture> surface_texture,
32 int render_frame_id,
33 int player_id) override;
35 private:
36 DISALLOW_COPY_AND_ASSIGN(BrowserSurfaceTextureManager);
39 } // namespace content
41 #endif // CONTENT_BROWSER_ANDROID_BROWSER_SURFACE_TEXTURE_MANAGER_H_