OLD | NEW |
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 #ifndef CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
6 #define CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/weak_ptr.h" | 12 #include "base/weak_ptr.h" |
| 13 #include "third_party/ppapi/c/pp_errors.h" |
| 14 #include "third_party/ppapi/c/pp_video.h" |
13 #include "webkit/glue/plugins/pepper_plugin_delegate.h" | 15 #include "webkit/glue/plugins/pepper_plugin_delegate.h" |
14 #include "webkit/glue/plugins/pepper_plugin_instance.h" | 16 #include "webkit/glue/plugins/pepper_plugin_instance.h" |
15 | 17 |
16 class RenderView; | 18 class RenderView; |
17 | 19 |
18 namespace pepper { | 20 namespace pepper { |
19 class PluginInstance; | 21 class PluginInstance; |
20 } | 22 } |
21 | 23 |
22 namespace WebKit { | 24 namespace WebKit { |
(...skipping 14 matching lines...) Expand all Loading... |
37 void ViewFlushedPaint(); | 39 void ViewFlushedPaint(); |
38 | 40 |
39 // pepper::PluginDelegate implementation. | 41 // pepper::PluginDelegate implementation. |
40 virtual void InstanceCreated(pepper::PluginInstance* instance); | 42 virtual void InstanceCreated(pepper::PluginInstance* instance); |
41 virtual void InstanceDeleted(pepper::PluginInstance* instance); | 43 virtual void InstanceDeleted(pepper::PluginInstance* instance); |
42 virtual PlatformAudio* CreateAudio( | 44 virtual PlatformAudio* CreateAudio( |
43 uint32_t sample_rate, | 45 uint32_t sample_rate, |
44 uint32_t sample_count, | 46 uint32_t sample_count, |
45 pepper::PluginDelegate::PlatformAudio::Client* client); | 47 pepper::PluginDelegate::PlatformAudio::Client* client); |
46 virtual PlatformImage2D* CreateImage2D(int width, int height); | 48 virtual PlatformImage2D* CreateImage2D(int width, int height); |
| 49 virtual PlatformVideoDecoder* CreateVideoDecoder( |
| 50 const PP_VideoDecoderConfig& decoder_config); |
47 virtual void DidChangeNumberOfFindResults(int identifier, | 51 virtual void DidChangeNumberOfFindResults(int identifier, |
48 int total, | 52 int total, |
49 bool final_result); | 53 bool final_result); |
50 virtual void DidChangeSelectedFindResult(int identifier, int index); | 54 virtual void DidChangeSelectedFindResult(int identifier, int index); |
51 virtual bool RunFileChooser( | 55 virtual bool RunFileChooser( |
52 const WebKit::WebFileChooserParams& params, | 56 const WebKit::WebFileChooserParams& params, |
53 WebKit::WebFileChooserCompletion* chooser_completion); | 57 WebKit::WebFileChooserCompletion* chooser_completion); |
54 | 58 |
55 private: | 59 private: |
56 // Pointer to the RenderView that owns us. | 60 // Pointer to the RenderView that owns us. |
57 RenderView* render_view_; | 61 RenderView* render_view_; |
58 | 62 |
59 std::set<pepper::PluginInstance*> active_instances_; | 63 std::set<pepper::PluginInstance*> active_instances_; |
60 | 64 |
61 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 65 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
62 }; | 66 }; |
63 | 67 |
64 #endif // CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 68 #endif // CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |