OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/sequenced_task_runner_helpers.h" | 14 #include "base/sequenced_task_runner_helpers.h" |
15 #include "ppapi/c/pp_var.h" | 15 #include "ppapi/c/pp_var.h" |
16 #include "third_party/WebKit/public/web/WebPlugin.h" | 16 #include "third_party/WebKit/public/web/WebPlugin.h" |
17 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
18 | 18 |
19 struct _NPP; | |
20 | |
21 namespace blink { | 19 namespace blink { |
22 struct WebPluginParams; | 20 struct WebPluginParams; |
23 struct WebPrintParams; | 21 struct WebPrintParams; |
24 } | 22 } |
25 | 23 |
26 namespace content { | 24 namespace content { |
27 | 25 |
28 class PepperPluginInstanceImpl; | 26 class PepperPluginInstanceImpl; |
29 class PluginInstanceThrottlerImpl; | 27 class PluginInstanceThrottlerImpl; |
30 class PluginModule; | 28 class PluginModule; |
31 class PPB_URLLoader_Impl; | |
32 class RenderFrameImpl; | 29 class RenderFrameImpl; |
33 | 30 |
34 class PepperWebPluginImpl : public blink::WebPlugin { | 31 class PepperWebPluginImpl : public blink::WebPlugin { |
35 public: | 32 public: |
36 PepperWebPluginImpl(PluginModule* module, | 33 PepperWebPluginImpl(PluginModule* module, |
37 const blink::WebPluginParams& params, | 34 const blink::WebPluginParams& params, |
38 RenderFrameImpl* render_frame, | 35 RenderFrameImpl* render_frame, |
39 std::unique_ptr<PluginInstanceThrottlerImpl> throttler); | 36 std::unique_ptr<PluginInstanceThrottlerImpl> throttler); |
40 | 37 |
41 PepperPluginInstanceImpl* instance() { return instance_.get(); } | 38 PepperPluginInstanceImpl* instance() { return instance_.get(); } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 gfx::Rect plugin_rect_; | 96 gfx::Rect plugin_rect_; |
100 PP_Var instance_object_; | 97 PP_Var instance_object_; |
101 blink::WebPluginContainer* container_; | 98 blink::WebPluginContainer* container_; |
102 | 99 |
103 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); | 100 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); |
104 }; | 101 }; |
105 | 102 |
106 } // namespace content | 103 } // namespace content |
107 | 104 |
108 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ | 105 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ |
OLD | NEW |