Temporary interface change to StatsReport::Id.
This change is just to allow rolling into Chromium, update Chromium and then commit the actual change in WebRTC that requires the interface change. It allows using a StatsReport::Id object as a pointer (foo->Bar()), since in an upcoming change, Id objects will be pointers. R=magjed@webrtc.org BUG=2822 Review URL: https://webrtc-codereview.appspot.com/43689004 Cr-Commit-Position: refs/heads/master@{#8697} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8697 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
afdd5dd372
commit
75b7f17c29
@ -228,6 +228,9 @@ class StatsReport {
|
||||
virtual bool Equals(const Id& other) const;
|
||||
virtual std::string ToString() const = 0;
|
||||
|
||||
// TODO(tommi): Remove this after rolling into Chrome.
|
||||
const Id* operator->() const { return this; }
|
||||
|
||||
protected:
|
||||
Id(StatsType type); // Only meant for derived classes.
|
||||
const StatsType type_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user