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 <jni.h> | 8 #include <jni.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
14 #include "media/base/android/media_drm_bridge.h" | 14 #include "media/base/android/media_drm_bridge.h" |
| 15 #include "media/base/android/provision_fetcher.h" |
15 | 16 |
16 // This class manages the media DRM credentials on Android. | 17 // This class manages the media DRM credentials on Android. |
17 class MediaDrmCredentialManager { | 18 class MediaDrmCredentialManager { |
18 public: | 19 public: |
19 static MediaDrmCredentialManager* GetInstance(); | 20 static MediaDrmCredentialManager* GetInstance(); |
20 | 21 |
21 typedef base::Callback<void(bool)> ResetCredentialsCB; | 22 typedef base::Callback<void(bool)> ResetCredentialsCB; |
22 | 23 |
23 // Called to reset the DRM credentials. (for Java) | 24 // Called to reset the DRM credentials. (for Java) |
24 // Only clears credentials for Widevine. | 25 // Only clears credentials for Widevine. |
(...skipping 28 matching lines...) Expand all Loading... |
53 // The MediaDrmBridge object used to perform the credential reset. | 54 // The MediaDrmBridge object used to perform the credential reset. |
54 scoped_refptr<media::MediaDrmBridge> media_drm_bridge_; | 55 scoped_refptr<media::MediaDrmBridge> media_drm_bridge_; |
55 | 56 |
56 // The callback provided by the caller. | 57 // The callback provided by the caller. |
57 ResetCredentialsCB reset_credentials_cb_; | 58 ResetCredentialsCB reset_credentials_cb_; |
58 | 59 |
59 DISALLOW_COPY_AND_ASSIGN(MediaDrmCredentialManager); | 60 DISALLOW_COPY_AND_ASSIGN(MediaDrmCredentialManager); |
60 }; | 61 }; |
61 | 62 |
62 #endif // CHROME_BROWSER_MEDIA_ANDROID_CDM_MEDIA_DRM_CREDENTIAL_MANAGER_H_ | 63 #endif // CHROME_BROWSER_MEDIA_ANDROID_CDM_MEDIA_DRM_CREDENTIAL_MANAGER_H_ |
OLD | NEW |