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

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: Rebase + Nit Created 3 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/media/android/cdm/media_drm_credential_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/android/cdm/media_drm_credential_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698