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

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 1747593002: Change the type for byte counts to size_t in WebMediaPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made changes in the unittests Created 4 years, 9 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 | « no previous file | content/renderer/media/android/webmediaplayer_android.cc » ('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 CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 blink::WebMediaPlayer::ReadyState readyState() const override; 166 blink::WebMediaPlayer::ReadyState readyState() const override;
167 167
168 bool hasSingleSecurityOrigin() const override; 168 bool hasSingleSecurityOrigin() const override;
169 bool didPassCORSAccessCheck() const override; 169 bool didPassCORSAccessCheck() const override;
170 170
171 double mediaTimeForTimeValue(double timeValue) const override; 171 double mediaTimeForTimeValue(double timeValue) const override;
172 172
173 // Provide statistics. 173 // Provide statistics.
174 unsigned decodedFrameCount() const override; 174 unsigned decodedFrameCount() const override;
175 unsigned droppedFrameCount() const override; 175 unsigned droppedFrameCount() const override;
176 unsigned audioDecodedByteCount() const override; 176 size_t audioDecodedByteCount() const override;
177 unsigned videoDecodedByteCount() const override; 177 size_t videoDecodedByteCount() const override;
178 178
179 // cc::VideoFrameProvider implementation. These methods are running on the 179 // cc::VideoFrameProvider implementation. These methods are running on the
180 // compositor thread. 180 // compositor thread.
181 void SetVideoFrameProviderClient( 181 void SetVideoFrameProviderClient(
182 cc::VideoFrameProvider::Client* client) override; 182 cc::VideoFrameProvider::Client* client) override;
183 bool UpdateCurrentFrame(base::TimeTicks deadline_min, 183 bool UpdateCurrentFrame(base::TimeTicks deadline_min,
184 base::TimeTicks deadline_max) override; 184 base::TimeTicks deadline_max) override;
185 bool HasCurrentFrame() override; 185 bool HasCurrentFrame() override;
186 scoped_refptr<media::VideoFrame> GetCurrentFrame() override; 186 scoped_refptr<media::VideoFrame> GetCurrentFrame() override;
187 void PutCurrentFrame() override; 187 void PutCurrentFrame() override;
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 503
504 // NOTE: Weak pointers must be invalidated before all other member variables. 504 // NOTE: Weak pointers must be invalidated before all other member variables.
505 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 505 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
506 506
507 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 507 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
508 }; 508 };
509 509
510 } // namespace content 510 } // namespace content
511 511
512 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 512 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698