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

Side by Side Diff: components/cdm/browser/widevine_drm_delegate_android.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "components/cdm/browser/widevine_drm_delegate_android.h" 5 #include "components/cdm/browser/widevine_drm_delegate_android.h"
6 6
7 #include "base/macros.h"
7 #include "media/cdm/cenc_utils.h" 8 #include "media/cdm/cenc_utils.h"
8 9
9 namespace cdm { 10 namespace cdm {
10 11
11 namespace { 12 namespace {
12 13
13 const uint8_t kWidevineUuid[16] = { 14 const uint8_t kWidevineUuid[16] = {
14 0xED, 0xEF, 0x8B, 0xA9, 0x79, 0xD6, 0x4A, 0xCE, 15 0xED, 0xEF, 0x8B, 0xA9, 0x79, 0xD6, 0x4A, 0xCE,
15 0xA3, 0xC8, 0x27, 0xDC, 0xD5, 0x1D, 0x21, 0xED }; 16 0xA3, 0xC8, 0x27, 0xDC, 0xD5, 0x1D, 0x21, 0xED };
16 17
(...skipping 17 matching lines...) Expand all
34 std::vector<std::string>* /* optional_parameters_out */) { 35 std::vector<std::string>* /* optional_parameters_out */) {
35 if (init_data_type != media::EmeInitDataType::CENC) 36 if (init_data_type != media::EmeInitDataType::CENC)
36 return true; 37 return true;
37 38
38 // Widevine MediaDrm plugin only accepts the "data" part of the PSSH box as 39 // Widevine MediaDrm plugin only accepts the "data" part of the PSSH box as
39 // the init data when using MP4 container. 40 // the init data when using MP4 container.
40 return media::GetPsshData(init_data, GetUUID(), init_data_out); 41 return media::GetPsshData(init_data, GetUUID(), init_data_out);
41 } 42 }
42 43
43 } // namespace cdm 44 } // namespace cdm
OLDNEW
« no previous file with comments | « components/cdm/browser/widevine_drm_delegate_android.h ('k') | components/cdm/common/cdm_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698