Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: content/renderer/media/android/renderer_surface_view_manager.h

Issue 2034153002: Makes RenderFrameObserver/RenderViewObserver::OnDestruct pure virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_SURFACE_VIEW_MANAGER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_SURFACE_VIEW_MANAGER_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_SURFACE_VIEW_MANAGER_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_SURFACE_VIEW_MANAGER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/renderer/render_frame_observer.h" 10 #include "content/public/renderer/render_frame_observer.h"
(...skipping 15 matching lines...) Expand all
26 // RenderFrameObserver override. 26 // RenderFrameObserver override.
27 bool OnMessageReceived(const IPC::Message& msg) override; 27 bool OnMessageReceived(const IPC::Message& msg) override;
28 28
29 // SurfaceManager overrides. 29 // SurfaceManager overrides.
30 void CreateFullscreenSurface( 30 void CreateFullscreenSurface(
31 const gfx::Size& video_natural_size, 31 const gfx::Size& video_natural_size,
32 const media::SurfaceCreatedCB& surface_created_cb) override; 32 const media::SurfaceCreatedCB& surface_created_cb) override;
33 void NaturalSizeChanged(const gfx::Size& size) override; 33 void NaturalSizeChanged(const gfx::Size& size) override;
34 34
35 private: 35 private:
36 // RenderFrameObserver implementation.
37 void OnDestruct() override;
38
36 void OnFullscreenSurfaceCreated(int surface_id); 39 void OnFullscreenSurfaceCreated(int surface_id);
37 40
38 // Set when a surface request is in progress. 41 // Set when a surface request is in progress.
39 media::SurfaceCreatedCB pending_surface_created_cb_; 42 media::SurfaceCreatedCB pending_surface_created_cb_;
40 43
41 DISALLOW_COPY_AND_ASSIGN(RendererSurfaceViewManager); 44 DISALLOW_COPY_AND_ASSIGN(RendererSurfaceViewManager);
42 }; 45 };
43 46
44 } // namespace content 47 } // namespace content
45 48
46 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_SURFACE_VIEW_MANAGER_H_ 49 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_SURFACE_VIEW_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698