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

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: Applied more CR suggestions & removed message_loop() methods where possible. Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/media.gyp ('k') | media/tools/player_wtl/movie.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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...) Expand 10 before | Expand all | Expand 10 after
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
« no previous file with comments | « media/media.gyp ('k') | media/tools/player_wtl/movie.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698