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

Side by Side Diff: chrome/browser/media/android/cdm/media_drm_credential_manager.h

Issue 2823513002: [Clank] Load origin id before create MediaDrmBridge (Closed)
Patch Set: Test 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 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
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 ~MediaDrmCredentialManager(); 49 ~MediaDrmCredentialManager();
50 50
51 // Callback function passed to MediaDrmBridge. It is called when credentials 51 // Callback function passed to MediaDrmBridge. It is called when credentials
52 // reset is completed. 52 // reset is completed.
53 void OnResetCredentialsCompleted(SecurityLevel security_level, bool success); 53 void OnResetCredentialsCompleted(SecurityLevel security_level, bool success);
54 54
55 // Resets DRM credentials for a particular |security_level|. The result is 55 // Resets DRM credentials for a particular |security_level|. The result is
56 // returned asynchronously in OnResetCredentialsCompleted() function. 56 // returned asynchronously in OnResetCredentialsCompleted() function.
57 void ResetCredentialsInternal(SecurityLevel security_level); 57 void ResetCredentialsInternal(SecurityLevel security_level);
58 58
59 void OnMediaDrmCreated(const ResetCredentialsCB& reset_credentials_cb,
60 scoped_refptr<media::MediaDrmBridge> media_drm_bridge);
61
59 // The MediaDrmBridge object used to perform the credential reset. 62 // The MediaDrmBridge object used to perform the credential reset.
60 scoped_refptr<media::MediaDrmBridge> media_drm_bridge_; 63 scoped_refptr<media::MediaDrmBridge> media_drm_bridge_;
61 64
62 // The callback provided by the caller. 65 // The callback provided by the caller.
63 ResetCredentialsCB reset_credentials_cb_; 66 ResetCredentialsCB reset_credentials_cb_;
64 67
65 DISALLOW_COPY_AND_ASSIGN(MediaDrmCredentialManager); 68 DISALLOW_COPY_AND_ASSIGN(MediaDrmCredentialManager);
66 }; 69 };
67 70
68 #endif // CHROME_BROWSER_MEDIA_ANDROID_CDM_MEDIA_DRM_CREDENTIAL_MANAGER_H_ 71 #endif // CHROME_BROWSER_MEDIA_ANDROID_CDM_MEDIA_DRM_CREDENTIAL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698