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

Unified Diff: media/tools/player_wtl/movie.h

Issue 5682008: Make members of Singleton<T> private and only visible to the singleton type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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/tools/player_wtl/movie.h
diff --git a/media/tools/player_wtl/movie.h b/media/tools/player_wtl/movie.h
index e505165e6b1e12577001ee3b71c1a983ab70bfa2..581a0db5bbb9aeb1235a31aa033fcf23e02ba512 100644
--- a/media/tools/player_wtl/movie.h
+++ b/media/tools/player_wtl/movie.h
@@ -11,17 +11,20 @@
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
-#include "base/singleton.h"
#include "base/thread.h"
+template <typename T> struct DefaultSingletonTraits;
class WtlVideoRenderer;
namespace media {
class PipelineImpl;
-class Movie : public Singleton<Movie> {
+class Movie {
public:
+ // Returns the singleton instance.
+ static Movie* GetInstance();
+
// Open a movie.
bool Open(const wchar_t* url, WtlVideoRenderer* video_renderer);

Powered by Google App Engine
This is Rietveld 408576698