| 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_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set | 90 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set |
| 91 // to false and the caller may want to fall back on creating an NPAPI plugin. | 91 // to false and the caller may want to fall back on creating an NPAPI plugin. |
| 92 // the second is that the plugin failed to initialize. In this case, | 92 // the second is that the plugin failed to initialize. In this case, |
| 93 // |*pepper_plugin_was_registered| will be set to true and the caller should | 93 // |*pepper_plugin_was_registered| will be set to true and the caller should |
| 94 // not fall back on any other plugin types. | 94 // not fall back on any other plugin types. |
| 95 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule> | 95 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule> |
| 96 CreatePepperPluginModule( | 96 CreatePepperPluginModule( |
| 97 const webkit::WebPluginInfo& webplugin_info, | 97 const webkit::WebPluginInfo& webplugin_info, |
| 98 bool* pepper_plugin_was_registered); | 98 bool* pepper_plugin_was_registered); |
| 99 | 99 |
| 100 // Creates a browser plugin instance given the process handle, and channel |
| 101 // handle to access the guest renderer. |
| 102 // If the plugin fails to initialize then return NULL. |
| 103 scoped_refptr<webkit::ppapi::PluginModule> CreateBrowserPluginModule( |
| 104 const IPC::ChannelHandle& channel_handle, |
| 105 int guest_process_id); |
| 106 |
| 100 // Called by RenderView to tell us about painting events, these two functions | 107 // Called by RenderView to tell us about painting events, these two functions |
| 101 // just correspond to the WillInitiatePaint, DidInitiatePaint and | 108 // just correspond to the WillInitiatePaint, DidInitiatePaint and |
| 102 // DidFlushPaint hooks in RenderView. | 109 // DidFlushPaint hooks in RenderView. |
| 103 void ViewWillInitiatePaint(); | 110 void ViewWillInitiatePaint(); |
| 104 void ViewInitiatedPaint(); | 111 void ViewInitiatedPaint(); |
| 105 void ViewFlushedPaint(); | 112 void ViewFlushedPaint(); |
| 106 | 113 |
| 107 // Called by RenderView to implement the corresponding function in its base | 114 // Called by RenderView to implement the corresponding function in its base |
| 108 // class RenderWidget (see that for more). | 115 // class RenderWidget (see that for more). |
| 109 webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 116 webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 | 501 |
| 495 scoped_ptr<PepperDeviceEnumerationEventHandler> | 502 scoped_ptr<PepperDeviceEnumerationEventHandler> |
| 496 device_enumeration_event_handler_; | 503 device_enumeration_event_handler_; |
| 497 | 504 |
| 498 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 505 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 499 }; | 506 }; |
| 500 | 507 |
| 501 } // namespace content | 508 } // namespace content |
| 502 | 509 |
| 503 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 510 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |