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

Side by Side Diff: webkit/media/android/webmediaplayer_in_process_android.h

Issue 11348199: Free (and pause) audio resources when getting a phone call (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@input_color
Patch Set: Created 8 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IN_PROCESS_ANDROID_H_ 5 #ifndef WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IN_PROCESS_ANDROID_H_
6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IN_PROCESS_ANDROID_H_ 6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IN_PROCESS_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include <jni.h> 10 #include <jni.h>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual bool paused() const; 70 virtual bool paused() const;
71 71
72 // Callbacks from media::MediaPlayerBridge to WebMediaPlayerInProcessAndroid. 72 // Callbacks from media::MediaPlayerBridge to WebMediaPlayerInProcessAndroid.
73 void MediaErrorCallback(int player_id, int error_type); 73 void MediaErrorCallback(int player_id, int error_type);
74 void VideoSizeChangedCallback(int player_id, int width, int height); 74 void VideoSizeChangedCallback(int player_id, int width, int height);
75 void BufferingUpdateCallback(int player_id, int percent); 75 void BufferingUpdateCallback(int player_id, int percent);
76 void PlaybackCompleteCallback(int player_id); 76 void PlaybackCompleteCallback(int player_id);
77 void SeekCompleteCallback(int player_id, base::TimeDelta current_time); 77 void SeekCompleteCallback(int player_id, base::TimeDelta current_time);
78 void MediaPreparedCallback(int player_id, base::TimeDelta duration); 78 void MediaPreparedCallback(int player_id, base::TimeDelta duration);
79 void TimeUpdateCallback(int player_id, base::TimeDelta current_time) {} 79 void TimeUpdateCallback(int player_id, base::TimeDelta current_time) {}
80 void MediaInterruptedCallback(int player_id);
80 81
81 // WebMediaPlayerAndroid implementation. 82 // WebMediaPlayerAndroid implementation.
82 virtual void SetVideoSurface(jobject j_surface) OVERRIDE; 83 virtual void SetVideoSurface(jobject j_surface) OVERRIDE;
83 virtual void OnTimeUpdate(base::TimeDelta current_time) OVERRIDE; 84 virtual void OnTimeUpdate(base::TimeDelta current_time) OVERRIDE;
84 85
85 private: 86 private:
86 // Methods inherited from WebMediaPlayerAndroid. 87 // Methods inherited from WebMediaPlayerAndroid.
87 virtual void InitializeMediaPlayer(GURL url) OVERRIDE; 88 virtual void InitializeMediaPlayer(GURL url) OVERRIDE;
88 virtual void PlayInternal() OVERRIDE; 89 virtual void PlayInternal() OVERRIDE;
89 virtual void PauseInternal() OVERRIDE; 90 virtual void PauseInternal() OVERRIDE;
(...skipping 18 matching lines...) Expand all
108 109
109 // Whether we should disable history logging. 110 // Whether we should disable history logging.
110 bool disable_history_logging_; 111 bool disable_history_logging_;
111 112
112 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerInProcessAndroid); 113 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerInProcessAndroid);
113 }; 114 };
114 115
115 } // namespace webkit_media 116 } // namespace webkit_media
116 117
117 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IN_PROCESS_ANDROID_H_ 118 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IN_PROCESS_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698