diff options
author | Gloria Wang <gwang@google.com> | 2011-03-15 10:52:28 -0700 |
---|---|---|
committer | Gloria Wang <gwang@google.com> | 2011-03-15 11:17:22 -0700 |
commit | 8d2577b9ac2f95f218db59a78447efd3c6a742dd (patch) | |
tree | 615cb3a9b4108444458d9d46858794fbed8d504b /drm/libdrmframework/include/DrmManagerClientImpl.h | |
parent | 8b9a9067511efca72ca872d689e30315c1450f94 (diff) | |
download | frameworks_av-8d2577b9ac2f95f218db59a78447efd3c6a742dd.zip frameworks_av-8d2577b9ac2f95f218db59a78447efd3c6a742dd.tar.gz frameworks_av-8d2577b9ac2f95f218db59a78447efd3c6a742dd.tar.bz2 |
Bug fixes of DRM framework.
- Add death listener to clean-up drmserver appropriately
when drmserver died.
- Remove "static" declaration of mUniqueIdVector because it was not
needed to be static variable.
- Remove "class DrmContentIds;" because the class does not exist.
- contentPath in saveRights() could be empty because
it is not required by some DRM schemes.
- Fix naming convention to use sXXX for static variables.
- Fix typo
Change-Id: I7d440488fc074c200f1009d1bafafeffebd690b2
Diffstat (limited to 'drm/libdrmframework/include/DrmManagerClientImpl.h')
-rw-r--r-- | drm/libdrmframework/include/DrmManagerClientImpl.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drm/libdrmframework/include/DrmManagerClientImpl.h b/drm/libdrmframework/include/DrmManagerClientImpl.h index 0cba8d4..564896b 100644 --- a/drm/libdrmframework/include/DrmManagerClientImpl.h +++ b/drm/libdrmframework/include/DrmManagerClientImpl.h @@ -407,9 +407,17 @@ private: Mutex mLock; sp<DrmManagerClient::OnInfoListener> mOnInfoListener; + class DeathNotifier: public IBinder::DeathRecipient { + public: + DeathNotifier() {} + virtual ~DeathNotifier(); + virtual void binderDied(const wp<IBinder>& who); + }; + private: - static Mutex mMutex; - static sp<IDrmManagerService> mDrmManagerService; + static Mutex sMutex; + static sp<DeathNotifier> sDeathNotifier; + static sp<IDrmManagerService> sDrmManagerService; static const sp<IDrmManagerService>& getDrmManagerService(); static const String8 EMPTY_STRING; }; |