| OLD | NEW |
| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 // Methods inherited from WebMediaPlayerAndroid. | 86 // Methods inherited from WebMediaPlayerAndroid. |
| 87 virtual void InitializeMediaPlayer(GURL url) OVERRIDE; | 87 virtual void InitializeMediaPlayer(GURL url) OVERRIDE; |
| 88 virtual void PlayInternal() OVERRIDE; | 88 virtual void PlayInternal() OVERRIDE; |
| 89 virtual void PauseInternal() OVERRIDE; | 89 virtual void PauseInternal() OVERRIDE; |
| 90 virtual void SeekInternal(base::TimeDelta time) OVERRIDE; | 90 virtual void SeekInternal(base::TimeDelta time) OVERRIDE; |
| 91 virtual float GetCurrentTimeInternal() const OVERRIDE; | 91 virtual float GetCurrentTimeInternal() const OVERRIDE; |
| 92 virtual void ReleaseResourcesInternal() OVERRIDE; | 92 virtual void ReleaseResourcesInternal() OVERRIDE; |
| 93 virtual void Destroy() OVERRIDE; | 93 virtual void Destroy() OVERRIDE; |
| 94 virtual void RequestExternalSurface() OVERRIDE; |
| 94 | 95 |
| 95 WebKit::WebFrame* const frame_; | 96 WebKit::WebFrame* const frame_; |
| 96 | 97 |
| 97 // Bridge to the android media player. | 98 // Bridge to the android media player. |
| 98 scoped_ptr<media::MediaPlayerBridge> media_player_; | 99 scoped_ptr<media::MediaPlayerBridge> media_player_; |
| 99 | 100 |
| 100 // Whether playback has completed. | 101 // Whether playback has completed. |
| 101 float playback_completed_; | 102 float playback_completed_; |
| 102 | 103 |
| 103 // Pointer to the cookie jar to get the cookie for the media url. | 104 // Pointer to the cookie jar to get the cookie for the media url. |
| 104 WebKit::WebCookieJar* cookie_jar_; | 105 WebKit::WebCookieJar* cookie_jar_; |
| 105 | 106 |
| 106 // Manager for managing all the hardware player resources. | 107 // Manager for managing all the hardware player resources. |
| 107 media::MediaPlayerBridgeManager* resource_manager_; | 108 media::MediaPlayerBridgeManager* resource_manager_; |
| 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_ |
| OLD | NEW |