Chromium Code Reviews

Side by Side Diff: media/tools/player_wtl/movie.h

Issue 6171009: Remove MessageLoop methods from Filter interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply CR suggestions & fix style issues. Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Movie class for WTL forms to call to control the media pipeline. 5 // Movie class for WTL forms to call to control the media pipeline.
6 6
7 #ifndef MEDIA_TOOLS_PLAYER_WTL_MOVIE_H_ 7 #ifndef MEDIA_TOOLS_PLAYER_WTL_MOVIE_H_
8 #define MEDIA_TOOLS_PLAYER_WTL_MOVIE_H_ 8 #define MEDIA_TOOLS_PLAYER_WTL_MOVIE_H_
9 9
10 #include "media/tools/player_wtl/player_wtl.h" 10 #include "media/tools/player_wtl/player_wtl.h"
11 11
12 #include "base/ref_counted.h" 12 #include "base/ref_counted.h"
13 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "base/threading/thread.h" 14 #include "media/base/message_loop_factory.h"
15 15
16 template <typename T> struct DefaultSingletonTraits; 16 template <typename T> struct DefaultSingletonTraits;
17 class WtlVideoRenderer; 17 class WtlVideoRenderer;
18 18
19 namespace media { 19 namespace media {
20 20
21 class PipelineImpl; 21 class PipelineImpl;
22 22
23 class Movie { 23 class Movie {
24 public: 24 public:
(...skipping 51 matching lines...)
76 // Get Enable/Disable dump yuv file state. 76 // Get Enable/Disable dump yuv file state.
77 bool GetDumpYuvFileEnable(); 77 bool GetDumpYuvFileEnable();
78 78
79 private: 79 private:
80 // Only allow Singleton to create and delete Movie. 80 // Only allow Singleton to create and delete Movie.
81 friend struct DefaultSingletonTraits<Movie>; 81 friend struct DefaultSingletonTraits<Movie>;
82 Movie(); 82 Movie();
83 virtual ~Movie(); 83 virtual ~Movie();
84 84
85 scoped_refptr<PipelineImpl> pipeline_; 85 scoped_refptr<PipelineImpl> pipeline_;
86 scoped_ptr<base::Thread> thread_; 86 scoped_ptr<media::MessageLoopFactory> message_loop_factory_;
87 87
88 bool enable_audio_; 88 bool enable_audio_;
89 bool enable_draw_; 89 bool enable_draw_;
90 bool enable_dump_yuv_file_; 90 bool enable_dump_yuv_file_;
91 bool enable_pause_; 91 bool enable_pause_;
92 int max_threads_; 92 int max_threads_;
93 float play_rate_; 93 float play_rate_;
94 HBITMAP movie_dib_; 94 HBITMAP movie_dib_;
95 HWND movie_hwnd_; 95 HWND movie_hwnd_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(Movie); 97 DISALLOW_COPY_AND_ASSIGN(Movie);
98 }; 98 };
99 99
100 } // namespace media 100 } // namespace media
101 101
102 #endif // MEDIA_TOOLS_PLAYER_WTL_MOVIE_H_ 102 #endif // MEDIA_TOOLS_PLAYER_WTL_MOVIE_H_
OLDNEW

Powered by Google App Engine