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

Unified Diff: third_party/WebKit/public/platform/WebSourceBufferClient.h

Issue 1897533002: Clean up WebSourceBufferClient interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused blinkTrackId variable for now Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/platform/WebSourceBufferClient.h
diff --git a/third_party/WebKit/public/platform/WebSourceBufferClient.h b/third_party/WebKit/public/platform/WebSourceBufferClient.h
index dccfcc87b804d5957eea61231c7f17cf1e38e2bb..2b5066971832808aaa18fd28e05869053f472d1e 100644
--- a/third_party/WebKit/public/platform/WebSourceBufferClient.h
+++ b/third_party/WebKit/public/platform/WebSourceBufferClient.h
@@ -7,9 +7,7 @@
#include "WebMediaPlayer.h"
#include "WebString.h"
-
-#include <tuple>
-#include <vector>
+#include "WebVector.h"
namespace blink {
@@ -18,12 +16,18 @@ public:
virtual ~WebSourceBufferClient() { }
// Complete media track info: track type, bytestream id, kind, label, language.
- typedef std::tuple<WebMediaPlayer::TrackType, WebString, WebString, WebString, WebString> MediaTrackInfo;
+ struct MediaTrackInfo {
+ WebMediaPlayer::TrackType trackType;
+ WebString byteStreamTrackId;
+ WebString kind;
+ WebString label;
+ WebString language;
+ };
// Notifies SourceBuffer that parsing of a new init segment has been completed successfully. The input parameter is a collection
// of information about media tracks found in the new init segment. The return value is a vector of blink WebMediaPlayer track ids
// assigned to each track of the input collection (the order of output track ids must match the input track information).
- virtual std::vector<WebMediaPlayer::TrackId> initializationSegmentReceived(const std::vector<MediaTrackInfo>& tracks) = 0;
+ virtual WebVector<WebMediaPlayer::TrackId> initializationSegmentReceived(const WebVector<MediaTrackInfo>& tracks) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698