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

Side by Side Diff: media/base/android/media_drm_bridge.cc

Issue 2805803002: [Clank] Implement MediaDrmStorageBridge with MediaDrmStorage (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "media/base/android/media_drm_bridge.h" 5 #include "media/base/android/media_drm_bridge.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 const std::vector<uint8_t>& scheme_uuid, 794 const std::vector<uint8_t>& scheme_uuid,
795 const GURL& security_origin, 795 const GURL& security_origin,
796 SecurityLevel security_level, 796 SecurityLevel security_level,
797 const CreateFetcherCB& create_fetcher_cb, 797 const CreateFetcherCB& create_fetcher_cb,
798 const CreateStorageCB& create_storage_cb, 798 const CreateStorageCB& create_storage_cb,
799 const SessionMessageCB& session_message_cb, 799 const SessionMessageCB& session_message_cb,
800 const SessionClosedCB& session_closed_cb, 800 const SessionClosedCB& session_closed_cb,
801 const SessionKeysChangeCB& session_keys_change_cb, 801 const SessionKeysChangeCB& session_keys_change_cb,
802 const SessionExpirationUpdateCB& session_expiration_update_cb) 802 const SessionExpirationUpdateCB& session_expiration_update_cb)
803 : scheme_uuid_(scheme_uuid), 803 : scheme_uuid_(scheme_uuid),
804 storage_(url::Origin(security_origin), create_storage_cb),
804 create_fetcher_cb_(create_fetcher_cb), 805 create_fetcher_cb_(create_fetcher_cb),
805 create_storage_cb_(create_storage_cb),
806 session_message_cb_(session_message_cb), 806 session_message_cb_(session_message_cb),
807 session_closed_cb_(session_closed_cb), 807 session_closed_cb_(session_closed_cb),
808 session_keys_change_cb_(session_keys_change_cb), 808 session_keys_change_cb_(session_keys_change_cb),
809 session_expiration_update_cb_(session_expiration_update_cb), 809 session_expiration_update_cb_(session_expiration_update_cb),
810 task_runner_(base::ThreadTaskRunnerHandle::Get()), 810 task_runner_(base::ThreadTaskRunnerHandle::Get()),
811 media_drm_bridge_cdm_context_(this), 811 media_drm_bridge_cdm_context_(this),
812 weak_factory_(this) { 812 weak_factory_(this) {
813 DVLOG(1) << __func__; 813 DVLOG(1) << __func__;
814 814
815 DCHECK(!create_fetcher_cb_.is_null()); 815 DCHECK(!create_fetcher_cb_.is_null());
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 } 937 }
938 938
939 void MediaDrmBridge::OnHasAdditionalUsableKey() { 939 void MediaDrmBridge::OnHasAdditionalUsableKey() {
940 DCHECK(task_runner_->BelongsToCurrentThread()); 940 DCHECK(task_runner_->BelongsToCurrentThread());
941 DVLOG(1) << __func__; 941 DVLOG(1) << __func__;
942 942
943 player_tracker_.NotifyNewKey(); 943 player_tracker_.NotifyNewKey();
944 } 944 }
945 945
946 } // namespace media 946 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698