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

Side by Side Diff: media/formats/webm/webm_stream_parser.h

Issue 1726193002: EME: Remove all references to `needkey` except the UMA name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FORMATS_WEBM_WEBM_STREAM_PARSER_H_ 5 #ifndef MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_
6 #define MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_ 6 #define MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // Incrementally parses WebM cluster elements. This method also skips 59 // Incrementally parses WebM cluster elements. This method also skips
60 // CUES elements if they are encountered since we currently don't use the 60 // CUES elements if they are encountered since we currently don't use the
61 // data in these elements. 61 // data in these elements.
62 // 62 //
63 // Returns < 0 if the parse fails. 63 // Returns < 0 if the parse fails.
64 // Returns 0 if more data is needed. 64 // Returns 0 if more data is needed.
65 // Returning > 0 indicates success & the number of bytes parsed. 65 // Returning > 0 indicates success & the number of bytes parsed.
66 int ParseCluster(const uint8_t* data, int size); 66 int ParseCluster(const uint8_t* data, int size);
67 67
68 // Fire needkey event through the |encrypted_media_init_data_cb_|. 68 // Fire the encrypted event through the |encrypted_media_init_data_cb_|.
69 void OnEncryptedMediaInitData(const std::string& key_id); 69 void OnEncryptedMediaInitData(const std::string& key_id);
70 70
71 State state_; 71 State state_;
72 InitCB init_cb_; 72 InitCB init_cb_;
73 NewConfigCB config_cb_; 73 NewConfigCB config_cb_;
74 NewBuffersCB new_buffers_cb_; 74 NewBuffersCB new_buffers_cb_;
75 bool ignore_text_tracks_; 75 bool ignore_text_tracks_;
76 EncryptedMediaInitDataCB encrypted_media_init_data_cb_; 76 EncryptedMediaInitDataCB encrypted_media_init_data_cb_;
77 77
78 NewMediaSegmentCB new_segment_cb_; 78 NewMediaSegmentCB new_segment_cb_;
79 EndMediaSegmentCB end_of_segment_cb_; 79 EndMediaSegmentCB end_of_segment_cb_;
80 scoped_refptr<MediaLog> media_log_; 80 scoped_refptr<MediaLog> media_log_;
81 81
82 bool unknown_segment_size_; 82 bool unknown_segment_size_;
83 83
84 scoped_ptr<WebMClusterParser> cluster_parser_; 84 scoped_ptr<WebMClusterParser> cluster_parser_;
85 ByteQueue byte_queue_; 85 ByteQueue byte_queue_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(WebMStreamParser); 87 DISALLOW_COPY_AND_ASSIGN(WebMStreamParser);
88 }; 88 };
89 89
90 } // namespace media 90 } // namespace media
91 91
92 #endif // MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_ 92 #endif // MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698