OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_RENDERER_PRERENDER_PRERENDER_WEBMEDIAPLAYER_H_ | |
6 #define CHROME_RENDERER_PRERENDER_PRERENDER_WEBMEDIAPLAYER_H_ | |
7 #pragma once | |
8 | |
9 #include "content/renderer/render_view_observer.h" | |
scherkus (not reviewing)
2011/10/03 18:19:45
alphabetize includes
Shishir
2011/10/04 23:02:39
Done.
| |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "webkit/glue/webmediaplayer_impl.h" | |
12 | |
13 namespace webkit_glue { | |
14 class MediaStreamClient; | |
15 } | |
16 | |
17 namespace prerender { | |
18 | |
19 class PrerenderWebMediaPlayer : public RenderViewObserver, | |
scherkus (not reviewing)
2011/10/03 18:19:45
nit: use initializer-list style
class A
: pub
Shishir
2011/10/04 23:02:39
Done.
| |
20 public webkit_glue::WebMediaPlayerImpl { | |
21 public: | |
22 PrerenderWebMediaPlayer(RenderView* render_view, | |
23 WebKit::WebMediaPlayerClient* client, | |
24 media::FilterCollection* collection, | |
25 media::MessageLoopFactory* message_loop_factory, | |
26 webkit_glue::MediaStreamClient* media_stream_client, | |
27 media::MediaLog* media_log); | |
28 virtual ~PrerenderWebMediaPlayer(); | |
29 | |
30 // WebMediaPlayer methods: | |
31 virtual void load(const WebKit::WebURL& url) OVERRIDE; | |
32 virtual void cancelLoad() OVERRIDE; | |
33 virtual void play() OVERRIDE; | |
34 virtual void pause() OVERRIDE; | |
35 | |
36 private: | |
37 // RenderViewObserver method: | |
38 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | |
39 | |
40 virtual void OnSetIsPrerendering(bool is_prerendering); | |
41 | |
42 bool is_prerendering_; | |
43 bool should_play_; | |
44 scoped_ptr<WebKit::WebURL> url_to_load_; | |
45 | |
46 DISALLOW_COPY_AND_ASSIGN(PrerenderWebMediaPlayer); | |
47 }; | |
48 | |
49 } // namespace prerender | |
50 | |
scherkus (not reviewing)
2011/10/03 18:19:45
nit: remove extra blank line
Shishir
2011/10/04 23:02:39
Done.
| |
51 | |
52 #endif // CHROME_RENDERER_PRERENDER_PRERENDER_WEBMEDIAPLAYER_H_ | |
OLD | NEW |