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

Unified Diff: chrome/browser/media/media_internals.h

Issue 11273060: Change MediaStreamCaptureIndicator back to ref counted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | chrome/browser/media/media_internals.cc » ('j') | chrome/browser/media/media_internals.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/media_internals.h
diff --git a/chrome/browser/media/media_internals.h b/chrome/browser/media/media_internals.h
index 483865b95e851ba6a6a8907d189ea185f3693dcd..9f15c5ce28068e04f52b98d099824eb77dda7df1 100644
--- a/chrome/browser/media/media_internals.h
+++ b/chrome/browser/media/media_internals.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_MEDIA_MEDIA_INTERNALS_H_
#define CHROME_BROWSER_MEDIA_MEDIA_INTERNALS_H_
+#include "base/memory/ref_counted.h"
#include "base/memory/singleton.h"
#include "base/observer_list.h"
#include "base/values.h"
@@ -61,9 +62,7 @@ class MediaInternals : public content::MediaObserver {
void RemoveObserver(MediaInternalsObserver* observer);
void SendEverything();
- MediaStreamCaptureIndicator* media_stream_capture_indicator() {
- return media_stream_capture_indicator_.get();
- }
+ scoped_refptr<MediaStreamCaptureIndicator> GetMediaStreamCaptureIndicator();
private:
friend class MediaInternalsTest;
@@ -90,7 +89,7 @@ class MediaInternals : public content::MediaObserver {
DictionaryValue data_;
ObserverList<MediaInternalsObserver> observers_;
- scoped_ptr<MediaStreamCaptureIndicator> media_stream_capture_indicator_;
+ scoped_refptr<MediaStreamCaptureIndicator> media_stream_capture_indicator_;
DISALLOW_COPY_AND_ASSIGN(MediaInternals);
};
« no previous file with comments | « no previous file | chrome/browser/media/media_internals.cc » ('j') | chrome/browser/media/media_internals.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698