| Index: base/memory/discardable_memory.h
 | 
| diff --git a/base/memory/discardable_memory.h b/base/memory/discardable_memory.h
 | 
| index a0882ccc94e9ab280ef3a82b9492cd0525b1bb9a..fc189e746341136d0190e0329d3c375be8500af2 100644
 | 
| --- a/base/memory/discardable_memory.h
 | 
| +++ b/base/memory/discardable_memory.h
 | 
| @@ -52,8 +52,13 @@ class BASE_EXPORT DiscardableMemory {
 | 
|    virtual void Unlock() = 0;
 | 
|  
 | 
|    // Returns the memory address held by this object. The object must be locked
 | 
| -  // before calling this. Otherwise, this will cause a DCHECK error.
 | 
| -  virtual void* Memory() const = 0;
 | 
| +  // before calling this.
 | 
| +  virtual void* data() const = 0;
 | 
| +
 | 
| +  // Handy method to simplify calling data() with a reinterpret_cast.
 | 
| +  template<typename T> T* data_as() const {
 | 
| +    return reinterpret_cast<T*>(data());
 | 
| +  }
 | 
|  };
 | 
|  
 | 
|  }  // namespace base
 | 
| 
 |