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

Unified Diff: media/webm/webm_content_encodings.h

Issue 10826098: Use std::string for decryption key ID in webm parser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 5 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
« no previous file with comments | « media/webm/webm_cluster_parser_unittest.cc ('k') | media/webm/webm_content_encodings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/webm/webm_content_encodings.h
diff --git a/media/webm/webm_content_encodings.h b/media/webm/webm_content_encodings.h
index ea903d8362f405e02b826e1e479c94a8e19ab919..2866f253f065d7c61d8922654c007eada202a776 100644
--- a/media/webm/webm_content_encodings.h
+++ b/media/webm/webm_content_encodings.h
@@ -5,6 +5,8 @@
#ifndef MEDIA_WEBM_WEBM_CONTENT_ENCODINGS_H_
#define MEDIA_WEBM_WEBM_CONTENT_ENCODINGS_H_
+#include <string>
+
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "media/base/media_export.h"
@@ -64,9 +66,7 @@ class MEDIA_EXPORT ContentEncoding {
encryption_algo_ = encryption_algo;
}
- const uint8* encryption_key_id() const { return encryption_key_id_.get(); }
- int encryption_key_id_size() const { return encryption_key_id_size_; }
-
+ const std::string& encryption_key_id() const { return encryption_key_id_; }
void SetEncryptionKeyId(const uint8* encryption_key_id, int size);
CipherMode cipher_mode() const { return cipher_mode_; }
@@ -77,8 +77,7 @@ class MEDIA_EXPORT ContentEncoding {
Scope scope_;
Type type_;
EncryptionAlgo encryption_algo_;
- scoped_array<uint8> encryption_key_id_;
- int encryption_key_id_size_;
+ std::string encryption_key_id_;
CipherMode cipher_mode_;
DISALLOW_COPY_AND_ASSIGN(ContentEncoding);
« no previous file with comments | « media/webm/webm_cluster_parser_unittest.cc ('k') | media/webm/webm_content_encodings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698