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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // reset is completed. | 46 // reset is completed. |
47 void OnResetCredentialsCompleted(SecurityLevel security_level, bool success); | 47 void OnResetCredentialsCompleted(SecurityLevel security_level, bool success); |
48 | 48 |
49 // Resets DRM credentials for a particular |security_level|. Returns false if | 49 // Resets DRM credentials for a particular |security_level|. Returns false if |
50 // we fail to create the MediaDrmBridge at all, in which case we cannot reset | 50 // we fail to create the MediaDrmBridge at all, in which case we cannot reset |
51 // the credentials. Otherwise, the result is returned asynchronously in | 51 // the credentials. Otherwise, the result is returned asynchronously in |
52 // OnResetCredentialsCompleted() function. | 52 // OnResetCredentialsCompleted() function. |
53 bool ResetCredentialsInternal(SecurityLevel security_level); | 53 bool ResetCredentialsInternal(SecurityLevel security_level); |
54 | 54 |
55 // The MediaDrmBridge object used to perform the credential reset. | 55 // The MediaDrmBridge object used to perform the credential reset. |
56 scoped_ptr<media::MediaDrmBridge> media_drm_bridge_; | 56 scoped_ptr<media::MediaDrmBridge, media::BrowserCdmDeleter> media_drm_bridge_; |
57 | 57 |
58 // The callback provided by the caller. | 58 // The callback provided by the caller. |
59 ResetCredentialsCB reset_credentials_cb_; | 59 ResetCredentialsCB reset_credentials_cb_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(MediaDrmCredentialManager); | 61 DISALLOW_COPY_AND_ASSIGN(MediaDrmCredentialManager); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace content | 64 } // namespace content |
65 | 65 |
66 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_DRM_CREDENTIAL_MANAGER_H_ | 66 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_DRM_CREDENTIAL_MANAGER_H_ |
OLD | NEW |