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

Side by Side Diff: content/renderer/media/webmediaplayer_ms.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
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_WEBMEDIAPLAYER_MS_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 bool didLoadingProgress() override; 125 bool didLoadingProgress() override;
126 126
127 bool hasSingleSecurityOrigin() const override; 127 bool hasSingleSecurityOrigin() const override;
128 bool didPassCORSAccessCheck() const override; 128 bool didPassCORSAccessCheck() const override;
129 129
130 double mediaTimeForTimeValue(double timeValue) const override; 130 double mediaTimeForTimeValue(double timeValue) const override;
131 131
132 unsigned decodedFrameCount() const override; 132 unsigned decodedFrameCount() const override;
133 unsigned droppedFrameCount() const override; 133 unsigned droppedFrameCount() const override;
134 unsigned audioDecodedByteCount() const override; 134 size_t audioDecodedByteCount() const override;
135 unsigned videoDecodedByteCount() const override; 135 size_t videoDecodedByteCount() const override;
136 136
137 // WebMediaPlayerDelegate::Observer implementation. 137 // WebMediaPlayerDelegate::Observer implementation.
138 void OnHidden(bool must_suspend) override; 138 void OnHidden(bool must_suspend) override;
139 void OnShown() override; 139 void OnShown() override;
140 void OnPlay() override; 140 void OnPlay() override;
141 void OnPause() override; 141 void OnPause() override;
142 void OnVolumeMultiplierUpdate(double multiplier) override; 142 void OnVolumeMultiplierUpdate(double multiplier) override;
143 143
144 bool copyVideoTextureToPlatformTexture( 144 bool copyVideoTextureToPlatformTexture(
145 blink::WebGraphicsContext3D* web_graphics_context, 145 blink::WebGraphicsContext3D* web_graphics_context,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 // True if the delegate forced a pause during the last OnHidden() call. 226 // True if the delegate forced a pause during the last OnHidden() call.
227 bool paused_on_hidden_; 227 bool paused_on_hidden_;
228 228
229 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 229 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
230 }; 230 };
231 231
232 } // namespace content 232 } // namespace content
233 233
234 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 234 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/html_video_element_capturer_source_unittest.cc ('k') | content/renderer/media/webmediaplayer_ms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698