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

Side by Side Diff: content/browser/media/android/media_drm_credential_manager.h

Issue 1341883003: Prepare MediaDrmBridge to work with MediaCodecPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bug526755
Patch Set: Created 5 years, 3 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 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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/cdm/browser_cdm_manager.h » ('j') | media/base/android/media_drm_proxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698