Chromium Code Reviews| 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 "base/memory/scoped_ptr.h" | |
| 10 #include "base/memory/weak_ptr.h" | |
| 11 #include "content/public/renderer/render_view_observer.h" | |
| 12 #include "webkit/glue/webmediaplayer_impl.h" | |
| 13 | |
| 14 namespace webkit_glue { | |
| 15 class MediaStreamClient; | |
| 16 class WebMediaPlayerDelegate; | |
| 17 } | |
| 18 | |
| 19 namespace prerender { | |
| 20 | |
| 21 class PrerenderWebMediaPlayer | |
|
scherkus (not reviewing)
2011/11/08 06:21:06
class-level comment please
Shishir
2011/11/09 22:27:47
Done.
| |
| 22 : public content::RenderViewObserver, | |
| 23 public webkit_glue::WebMediaPlayerImpl { | |
| 24 public: | |
| 25 PrerenderWebMediaPlayer( | |
| 26 content::RenderView* render_view, | |
| 27 WebKit::WebMediaPlayerClient* client, | |
| 28 base::WeakPtr<webkit_glue::WebMediaPlayerDelegate> delegate, | |
| 29 media::FilterCollection* collection, | |
| 30 media::MessageLoopFactory* message_loop_factory, | |
| 31 webkit_glue::MediaStreamClient* media_stream_client, | |
| 32 media::MediaLog* media_log); | |
| 33 virtual ~PrerenderWebMediaPlayer(); | |
| 34 | |
| 35 // WebMediaPlayer methods: | |
| 36 virtual void load(const WebKit::WebURL& url) OVERRIDE; | |
| 37 virtual void cancelLoad() OVERRIDE; | |
| 38 | |
| 39 private: | |
| 40 // RenderViewObserver method: | |
| 41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | |
| 42 | |
| 43 virtual void OnSetIsPrerendering(bool is_prerendering); | |
| 44 | |
| 45 bool is_prerendering_; | |
| 46 scoped_ptr<WebKit::WebURL> url_to_load_; | |
| 47 | |
| 48 DISALLOW_COPY_AND_ASSIGN(PrerenderWebMediaPlayer); | |
| 49 }; | |
| 50 | |
| 51 } // namespace prerender | |
| 52 | |
| 53 #endif // CHROME_RENDERER_PRERENDER_PRERENDER_WEBMEDIAPLAYER_H_ | |
| OLD | NEW |