OLD | NEW |
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 CHROME_BROWSER_MEDIA_ANDROID_CDM_MEDIA_DRM_CREDENTIAL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ANDROID_CDM_MEDIA_DRM_CREDENTIAL_MANAGER_H_ |
6 #define CHROME_BROWSER_MEDIA_ANDROID_CDM_MEDIA_DRM_CREDENTIAL_MANAGER_H_ | 6 #define CHROME_BROWSER_MEDIA_ANDROID_CDM_MEDIA_DRM_CREDENTIAL_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 ~MediaDrmCredentialManager(); | 46 ~MediaDrmCredentialManager(); |
47 | 47 |
48 // Callback function passed to MediaDrmBridge. It is called when credentials | 48 // Callback function passed to MediaDrmBridge. It is called when credentials |
49 // reset is completed. | 49 // reset is completed. |
50 void OnResetCredentialsCompleted(SecurityLevel security_level, bool success); | 50 void OnResetCredentialsCompleted(SecurityLevel security_level, bool success); |
51 | 51 |
52 // Resets DRM credentials for a particular |security_level|. The result is | 52 // Resets DRM credentials for a particular |security_level|. The result is |
53 // returned asynchronously in OnResetCredentialsCompleted() function. | 53 // returned asynchronously in OnResetCredentialsCompleted() function. |
54 void ResetCredentialsInternal(SecurityLevel security_level); | 54 void ResetCredentialsInternal(SecurityLevel security_level); |
55 | 55 |
| 56 void OnMediaDrmCreated(const ResetCredentialsCB& reset_credentials_cb, |
| 57 scoped_refptr<media::MediaDrmBridge> media_drm_bridge); |
| 58 |
56 // The MediaDrmBridge object used to perform the credential reset. | 59 // The MediaDrmBridge object used to perform the credential reset. |
57 scoped_refptr<media::MediaDrmBridge> media_drm_bridge_; | 60 scoped_refptr<media::MediaDrmBridge> media_drm_bridge_; |
58 | 61 |
59 // The callback provided by the caller. | 62 // The callback provided by the caller. |
60 ResetCredentialsCB reset_credentials_cb_; | 63 ResetCredentialsCB reset_credentials_cb_; |
61 | 64 |
62 DISALLOW_COPY_AND_ASSIGN(MediaDrmCredentialManager); | 65 DISALLOW_COPY_AND_ASSIGN(MediaDrmCredentialManager); |
63 }; | 66 }; |
64 | 67 |
65 #endif // CHROME_BROWSER_MEDIA_ANDROID_CDM_MEDIA_DRM_CREDENTIAL_MANAGER_H_ | 68 #endif // CHROME_BROWSER_MEDIA_ANDROID_CDM_MEDIA_DRM_CREDENTIAL_MANAGER_H_ |
OLD | NEW |