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

Side by Side Diff: media/base/android/media_player_bridge.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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
« no previous file with comments | « media/audio/audio_output_dispatcher_impl.h ('k') | media/blink/skcanvas_video_renderer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 bool can_pause_; 170 bool can_pause_;
171 bool can_seek_forward_; 171 bool can_seek_forward_;
172 bool can_seek_backward_; 172 bool can_seek_backward_;
173 173
174 // Cookies for |url_|. 174 // Cookies for |url_|.
175 std::string cookies_; 175 std::string cookies_;
176 176
177 // Java MediaPlayerBridge instance. 177 // Java MediaPlayerBridge instance.
178 base::android::ScopedJavaGlobalRef<jobject> j_media_player_bridge_; 178 base::android::ScopedJavaGlobalRef<jobject> j_media_player_bridge_;
179 179
180 base::RepeatingTimer<MediaPlayerBridge> time_update_timer_; 180 base::RepeatingTimer time_update_timer_;
181 181
182 // Volume of playback. 182 // Volume of playback.
183 double volume_; 183 double volume_;
184 184
185 // Whether user credentials are allowed to be passed. 185 // Whether user credentials are allowed to be passed.
186 bool allow_credentials_; 186 bool allow_credentials_;
187 187
188 // NOTE: Weak pointers must be invalidated before all other member variables. 188 // NOTE: Weak pointers must be invalidated before all other member variables.
189 base::WeakPtrFactory<MediaPlayerBridge> weak_factory_; 189 base::WeakPtrFactory<MediaPlayerBridge> weak_factory_;
190 190
191 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); 191 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge);
192 }; 192 };
193 193
194 } // namespace media 194 } // namespace media
195 195
196 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ 196 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_
OLDNEW
« no previous file with comments | « media/audio/audio_output_dispatcher_impl.h ('k') | media/blink/skcanvas_video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698