| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set | 80 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set |
| 81 // to false and the caller may want to fall back on creating an NPAPI plugin. | 81 // to false and the caller may want to fall back on creating an NPAPI plugin. |
| 82 // the second is that the plugin failed to initialize. In this case, | 82 // the second is that the plugin failed to initialize. In this case, |
| 83 // |*pepper_plugin_was_registered| will be set to true and the caller should | 83 // |*pepper_plugin_was_registered| will be set to true and the caller should |
| 84 // not fall back on any other plugin types. | 84 // not fall back on any other plugin types. |
| 85 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule> | 85 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule> |
| 86 CreatePepperPluginModule( | 86 CreatePepperPluginModule( |
| 87 const webkit::WebPluginInfo& webplugin_info, | 87 const webkit::WebPluginInfo& webplugin_info, |
| 88 bool* pepper_plugin_was_registered); | 88 bool* pepper_plugin_was_registered); |
| 89 | 89 |
| 90 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule> |
| 91 CreateBrowserPluginModule( |
| 92 base::ProcessHandle process_handle, |
| 93 const IPC::ChannelHandle& channel_handle); |
| 94 |
| 90 // Called by RenderView to tell us about painting events, these two functions | 95 // Called by RenderView to tell us about painting events, these two functions |
| 91 // just correspond to the WillInitiatePaint, DidInitiatePaint and | 96 // just correspond to the WillInitiatePaint, DidInitiatePaint and |
| 92 // DidFlushPaint hooks in RenderView. | 97 // DidFlushPaint hooks in RenderView. |
| 93 void ViewWillInitiatePaint(); | 98 void ViewWillInitiatePaint(); |
| 94 void ViewInitiatedPaint(); | 99 void ViewInitiatedPaint(); |
| 95 void ViewFlushedPaint(); | 100 void ViewFlushedPaint(); |
| 96 | 101 |
| 97 // Called by RenderView to implement the corresponding function in its base | 102 // Called by RenderView to implement the corresponding function in its base |
| 98 // class RenderWidget (see that for more). | 103 // class RenderWidget (see that for more). |
| 99 webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 104 webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 | 470 |
| 466 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 471 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 467 | 472 |
| 468 scoped_ptr<PepperDeviceEnumerationEventHandler> | 473 scoped_ptr<PepperDeviceEnumerationEventHandler> |
| 469 device_enumeration_event_handler_; | 474 device_enumeration_event_handler_; |
| 470 | 475 |
| 471 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 476 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 472 }; | 477 }; |
| 473 | 478 |
| 474 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 479 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |