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

Unified Diff: media/cdm/ppapi/linked_ptr.h

Issue 26155003: Add CdmWrapper to support multiple CDM versions in CdmAdapter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add cdm_helpers.h Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: media/cdm/ppapi/linked_ptr.h
diff --git a/media/cdm/ppapi/linked_ptr.h b/media/cdm/ppapi/linked_ptr.h
index f3eccbbcf0e5d8e614b12ecf3f7a99e374f15e31..1e47a03771dfc13ceafbf96e9c64d5dd990d2682 100644
--- a/media/cdm/ppapi/linked_ptr.h
+++ b/media/cdm/ppapi/linked_ptr.h
@@ -115,6 +115,7 @@ class linked_ptr {
capture(ptr);
}
T* get() const { return value_; }
+ operator T*() const { return value_; }
xhwang 2013/10/15 20:42:33 This is to avoid numerous cdm_.get() calls in CdmW
T* operator->() const { return value_; }
T& operator*() const { return *value_; }
// Release ownership of the pointed object and returns it.

Powered by Google App Engine
This is Rietveld 408576698