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

Side by Side Diff: content/browser/media/android/media_session_delegate.h

Issue 1110833004: Move audio focus control from media/ to content/ and make it per WebContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
(Empty)
1 // Copyright 2015 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_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_DELEGATE_H_
6 #define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_DELEGATE_H_
7
8 #include <jni.h>
9
10 #include "base/android/scoped_java_ref.h"
11 #include "base/id_map.h"
whywhat 2015/05/12 12:50:46 nit: IWYU - I don't think you need any of those in
mlamouri (slow - plz ping) 2015/05/19 21:56:16 Oups :)
12 #include "content/public/browser/web_contents_observer.h"
13 #include "content/public/browser/web_contents_user_data.h"
14
15 namespace content {
16
17 class MediaSessionDelegate {
18 public:
19 MediaSessionDelegate() = default;
20 virtual ~MediaSessionDelegate() = default;
21
22 // The given |player_id| has been suspended by the MediaSession.
23 virtual void OnSuspend(int player_id) = 0;
24
25 // The given |player_id| has been suspended by the MediaSession.
whywhat 2015/05/12 12:50:46 nit: s/suspended/resumed
mlamouri (slow - plz ping) 2015/05/19 21:56:17 Done.
26 virtual void OnResume(int player_id) = 0;
27 };
28
29 } // namespace content
30
31 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698