| Index: content/browser/media/android/media_session_delegate.h
|
| diff --git a/content/browser/media/android/media_session_delegate.h b/content/browser/media/android/media_session_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3646e9cf222b9bc44c4902539b9b3c116bee0489
|
| --- /dev/null
|
| +++ b/content/browser/media/android/media_session_delegate.h
|
| @@ -0,0 +1,24 @@
|
| +// Copyright 2015 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_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_DELEGATE_H_
|
| +#define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_DELEGATE_H_
|
| +
|
| +namespace content {
|
| +
|
| +class MediaSessionDelegate {
|
| + public:
|
| + MediaSessionDelegate() = default;
|
| + virtual ~MediaSessionDelegate() = default;
|
| +
|
| + // The given |player_id| has been suspended by the MediaSession.
|
| + virtual void OnSuspend(int player_id) = 0;
|
| +
|
| + // The given |player_id| has been resumed by the MediaSession.
|
| + virtual void OnResume(int player_id) = 0;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_DELEGATE_H_
|
|
|