| Index: content/public/browser/android/video_surface_manager.h
|
| diff --git a/content/public/browser/android/video_surface_manager.h b/content/public/browser/android/video_surface_manager.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..186748fd7fa7352d53397b0dd820b64b573e63d8
|
| --- /dev/null
|
| +++ b/content/public/browser/android/video_surface_manager.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_PUBLIC_BROWSER_ANDROID_VIDEO_SURFACE_MANAGER_H_
|
| +#define CONTENT_PUBLIC_BROWSER_ANDROID_VIDEO_SURFACE_MANAGER_H_
|
| +
|
| +#include "content/common/content_export.h"
|
| +
|
| +#include "content/public/browser/android/video_surface_provider.h"
|
| +
|
| +namespace content {
|
| +
|
| +class WebContents;
|
| +
|
| +class CONTENT_EXPORT VideoSurfaceManager {
|
| + public:
|
| + // Returns the Video Surface Manager.
|
| + static VideoSurfaceManager* GetInstance();
|
| +
|
| + virtual ~VideoSurfaceManager() {}
|
| +
|
| + // The default is to create an instance of ContentVideoView if an override
|
| + // provider has not been set.
|
| + virtual void SetOverrideVideoSurfaceProvider(
|
| + VideoSurfaceProvider* provider) = 0;
|
| + virtual void RemoveOverrideVideoSurfaceProvider(
|
| + VideoSurfaceProvider* provider) = 0;
|
| +
|
| + // Returns the current video surface provider (there can only be one).
|
| + virtual VideoSurfaceProvider* GetVideoSurfaceProvider(
|
| + WebContents* web_contents) = 0;
|
| +};
|
| +
|
| +} // namespace content
|
| +#endif // CONTENT_PUBLIC_BROWSER_ANDROID_VIDEO_SURFACE_MANAGER_H_
|
|
|