OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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. | |
4 | |
5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_SURFACE_VIEW_MANAGER_H_ | |
6 #define CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_SURFACE_VIEW_MANAGER_H_ | |
7 | |
8 #include "base/callback.h" | |
9 #include "content/common/content_export.h" | |
10 #include "content/public/renderer/render_frame_observer.h" | |
11 #include "media/base/surface_manager.h" | |
12 | |
13 namespace content { | |
14 | |
15 class CONTENT_EXPORT RendererSurfaceViewManager | |
DaleCurtis
2016/02/02 01:01:33
Seems like this might be okay to just put on the D
watk
2016/02/02 20:38:14
I like the idea of putting it on the delegate actu
watk
2016/02/05 03:42:30
I tried putting it in the delegate, but decided it
| |
16 : public media::SurfaceManager, | |
17 public RenderFrameObserver { | |
18 public: | |
19 explicit RendererSurfaceViewManager(RenderFrame* render_frame); | |
20 ~RendererSurfaceViewManager() override; | |
21 | |
22 // RenderFrameObserver override. | |
23 bool OnMessageReceived(const IPC::Message& msg) override; | |
24 | |
25 void CreateFullscreenSurface( | |
26 const media::SurfaceCreatedCB& surface_created_cb) override; | |
27 | |
28 private: | |
29 void OnFullscreenSurfaceCreated(int32_t surface_id); | |
30 | |
31 media::SurfaceCreatedCB pending_surface_created_cb_; | |
32 | |
33 DISALLOW_COPY_AND_ASSIGN(RendererSurfaceViewManager); | |
34 }; | |
35 | |
36 } // namespace content | |
37 | |
38 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_SURFACE_VIEW_MANAGER_H_ | |
OLD | NEW |