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

Side by Side Diff: content/browser/media/android/media_drm_credential_manager.h

Issue 1341883003: Prepare MediaDrmBridge to work with MediaCodecPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bug526755
Patch Set: Partially addressed Xiaohan's comments Created 5 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_DRM_CREDENTIAL_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_DRM_CREDENTIAL_MANAGER_H_
6 #define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_DRM_CREDENTIAL_MANAGER_H_ 6 #define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_DRM_CREDENTIAL_MANAGER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // reset is completed. 45 // reset is completed.
46 void OnResetCredentialsCompleted(SecurityLevel security_level, bool success); 46 void OnResetCredentialsCompleted(SecurityLevel security_level, bool success);
47 47
48 // Resets DRM credentials for a particular |security_level|. Returns false if 48 // Resets DRM credentials for a particular |security_level|. Returns false if
49 // we fail to create the MediaDrmBridge at all, in which case we cannot reset 49 // we fail to create the MediaDrmBridge at all, in which case we cannot reset
50 // the credentials. Otherwise, the result is returned asynchronously in 50 // the credentials. Otherwise, the result is returned asynchronously in
51 // OnResetCredentialsCompleted() function. 51 // OnResetCredentialsCompleted() function.
52 bool ResetCredentialsInternal(SecurityLevel security_level); 52 bool ResetCredentialsInternal(SecurityLevel security_level);
53 53
54 // The MediaDrmBridge object used to perform the credential reset. 54 // The MediaDrmBridge object used to perform the credential reset.
55 scoped_ptr<media::MediaDrmBridge> media_drm_bridge_; 55 media::BrowserCdmPtr media_drm_bridge_;
xhwang 2015/09/29 21:04:24 oops, I totally missed the point. I thought this i
Tima Vaisburd 2015/09/29 21:51:40 Done.
56 56
57 // The callback provided by the caller. 57 // The callback provided by the caller.
58 ResetCredentialsCB reset_credentials_cb_; 58 ResetCredentialsCB reset_credentials_cb_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(MediaDrmCredentialManager); 60 DISALLOW_COPY_AND_ASSIGN(MediaDrmCredentialManager);
61 }; 61 };
62 62
63 } // namespace content 63 } // namespace content
64 64
65 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_DRM_CREDENTIAL_MANAGER_H_ 65 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_DRM_CREDENTIAL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698