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_PLUGIN_INSTANCE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 public NON_EXPORTED_BASE(cc::TextureLayerClient), | 123 public NON_EXPORTED_BASE(cc::TextureLayerClient), |
124 public RenderFrameObserver { | 124 public RenderFrameObserver { |
125 public: | 125 public: |
126 // Create and return a PepperPluginInstanceImpl object which supports the most | 126 // Create and return a PepperPluginInstanceImpl object which supports the most |
127 // recent version of PPP_Instance possible by querying the given | 127 // recent version of PPP_Instance possible by querying the given |
128 // get_plugin_interface function. If the plugin does not support any valid | 128 // get_plugin_interface function. If the plugin does not support any valid |
129 // PPP_Instance interface, returns NULL. | 129 // PPP_Instance interface, returns NULL. |
130 static PepperPluginInstanceImpl* Create(RenderFrameImpl* render_frame, | 130 static PepperPluginInstanceImpl* Create(RenderFrameImpl* render_frame, |
131 PluginModule* module, | 131 PluginModule* module, |
132 blink::WebPluginContainer* container, | 132 blink::WebPluginContainer* container, |
133 const GURL& plugin_url); | 133 const GURL& plugin_url, |
| 134 const GURL& top_frame_url); |
134 RenderFrameImpl* render_frame() const { return render_frame_; } | 135 RenderFrameImpl* render_frame() const { return render_frame_; } |
135 PluginModule* module() const { return module_.get(); } | 136 PluginModule* module() const { return module_.get(); } |
136 | 137 |
137 blink::WebPluginContainer* container() const { return container_; } | 138 blink::WebPluginContainer* container() const { return container_; } |
138 | 139 |
139 // Returns the PP_Instance uniquely identifying this instance. Guaranteed | 140 // Returns the PP_Instance uniquely identifying this instance. Guaranteed |
140 // nonzero. | 141 // nonzero. |
141 PP_Instance pp_instance() const { return pp_instance_; } | 142 PP_Instance pp_instance() const { return pp_instance_; } |
142 | 143 |
143 ppapi::thunk::ResourceCreationAPI& resource_creation() { | 144 ppapi::thunk::ResourceCreationAPI& resource_creation() { |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 }; | 587 }; |
587 | 588 |
588 // See the static Create functions above for creating PepperPluginInstanceImpl | 589 // See the static Create functions above for creating PepperPluginInstanceImpl |
589 // objects. This constructor is private so that we can hide the | 590 // objects. This constructor is private so that we can hide the |
590 // PPP_Instance_Combined details while still having 1 constructor to maintain | 591 // PPP_Instance_Combined details while still having 1 constructor to maintain |
591 // for member initialization. | 592 // for member initialization. |
592 PepperPluginInstanceImpl(RenderFrameImpl* render_frame, | 593 PepperPluginInstanceImpl(RenderFrameImpl* render_frame, |
593 PluginModule* module, | 594 PluginModule* module, |
594 ppapi::PPP_Instance_Combined* instance_interface, | 595 ppapi::PPP_Instance_Combined* instance_interface, |
595 blink::WebPluginContainer* container, | 596 blink::WebPluginContainer* container, |
596 const GURL& plugin_url); | 597 const GURL& plugin_url, |
| 598 const GURL& top_frame_url); |
597 | 599 |
598 bool LoadFindInterface(); | 600 bool LoadFindInterface(); |
599 bool LoadInputEventInterface(); | 601 bool LoadInputEventInterface(); |
600 bool LoadMouseLockInterface(); | 602 bool LoadMouseLockInterface(); |
601 bool LoadPdfInterface(); | 603 bool LoadPdfInterface(); |
602 bool LoadPrintInterface(); | 604 bool LoadPrintInterface(); |
603 bool LoadPrivateInterface(); | 605 bool LoadPrivateInterface(); |
604 bool LoadTextInputInterface(); | 606 bool LoadTextInputInterface(); |
605 bool LoadZoomInterface(); | 607 bool LoadZoomInterface(); |
606 | 608 |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 // view change events. | 924 // view change events. |
923 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 925 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
924 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 926 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
925 | 927 |
926 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 928 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
927 }; | 929 }; |
928 | 930 |
929 } // namespace content | 931 } // namespace content |
930 | 932 |
931 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 933 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
OLD | NEW |