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

Side by Side Diff: chrome/browser/media/android/remote/remote_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, 2 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 | « chrome/browser/jumplist_win.h ('k') | chrome/browser/memory/oom_priority_manager.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_
6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ 6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // be called with an error type. 110 // be called with an error type.
111 void Prepare(); 111 void Prepare();
112 112
113 long start_position_millis_; 113 long start_position_millis_;
114 MediaPlayerAndroid* local_player_; 114 MediaPlayerAndroid* local_player_;
115 bool in_use_; 115 bool in_use_;
116 bool prepared_; 116 bool prepared_;
117 bool pending_play_; 117 bool pending_play_;
118 int width_; 118 int width_;
119 int height_; 119 int height_;
120 base::RepeatingTimer<RemoteMediaPlayerBridge> time_update_timer_; 120 base::RepeatingTimer time_update_timer_;
121 base::TimeDelta duration_; 121 base::TimeDelta duration_;
122 bool should_seek_on_prepare_; 122 bool should_seek_on_prepare_;
123 base::TimeDelta pending_seek_; 123 base::TimeDelta pending_seek_;
124 124
125 // Hide url log from media player. 125 // Hide url log from media player.
126 bool hide_url_log_; 126 bool hide_url_log_;
127 127
128 // Volume of playback. 128 // Volume of playback.
129 double volume_; 129 double volume_;
130 130
(...skipping 14 matching lines...) Expand all
145 145
146 // NOTE: Weak pointers must be invalidated before all other member variables. 146 // NOTE: Weak pointers must be invalidated before all other member variables.
147 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_; 147 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge); 149 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge);
150 }; 150 };
151 151
152 } // namespace remote_media 152 } // namespace remote_media
153 153
154 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ 154 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/jumplist_win.h ('k') | chrome/browser/memory/oom_priority_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698