| 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 PP_Bool success) OVERRIDE; | 463 PP_Bool success) OVERRIDE; |
| 464 virtual void DecoderDeinitializeDone(PP_Instance instance, | 464 virtual void DecoderDeinitializeDone(PP_Instance instance, |
| 465 PP_DecryptorStreamType decoder_type, | 465 PP_DecryptorStreamType decoder_type, |
| 466 uint32_t request_id) OVERRIDE; | 466 uint32_t request_id) OVERRIDE; |
| 467 virtual void DecoderResetDone(PP_Instance instance, | 467 virtual void DecoderResetDone(PP_Instance instance, |
| 468 PP_DecryptorStreamType decoder_type, | 468 PP_DecryptorStreamType decoder_type, |
| 469 uint32_t request_id) OVERRIDE; | 469 uint32_t request_id) OVERRIDE; |
| 470 virtual void DeliverFrame(PP_Instance instance, | 470 virtual void DeliverFrame(PP_Instance instance, |
| 471 PP_Resource decrypted_frame, | 471 PP_Resource decrypted_frame, |
| 472 const PP_DecryptedFrameInfo* frame_info) OVERRIDE; | 472 const PP_DecryptedFrameInfo* frame_info) OVERRIDE; |
| 473 virtual void DeliverSamples(PP_Instance instance, | 473 virtual void DeliverSamples( |
| 474 PP_Resource audio_frames, | 474 PP_Instance instance, |
| 475 const PP_DecryptedBlockInfo* block_info) OVERRIDE; | 475 PP_Resource audio_frames, |
| 476 const PP_DecryptedSampleInfo* sample_info) OVERRIDE; |
| 476 | 477 |
| 477 // Reset this instance as proxied. Assigns the instance a new module, resets | 478 // Reset this instance as proxied. Assigns the instance a new module, resets |
| 478 // cached interfaces to point to the out-of-process proxy and re-sends | 479 // cached interfaces to point to the out-of-process proxy and re-sends |
| 479 // DidCreate, DidChangeView, and HandleDocumentLoad (if necessary). | 480 // DidCreate, DidChangeView, and HandleDocumentLoad (if necessary). |
| 480 // This should be used only when switching an in-process instance to an | 481 // This should be used only when switching an in-process instance to an |
| 481 // external out-of-process instance. | 482 // external out-of-process instance. |
| 482 PP_ExternalPluginResult ResetAsProxied(scoped_refptr<PluginModule> module); | 483 PP_ExternalPluginResult ResetAsProxied(scoped_refptr<PluginModule> module); |
| 483 | 484 |
| 484 // Checks whether this is a valid instance of the given module. After calling | 485 // Checks whether this is a valid instance of the given module. After calling |
| 485 // ResetAsProxied above, a NaCl plugin instance's module changes, so external | 486 // ResetAsProxied above, a NaCl plugin instance's module changes, so external |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 // view change events. | 859 // view change events. |
| 859 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 860 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
| 860 | 861 |
| 861 friend class PpapiPluginInstanceTest; | 862 friend class PpapiPluginInstanceTest; |
| 862 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 863 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
| 863 }; | 864 }; |
| 864 | 865 |
| 865 } // namespace content | 866 } // namespace content |
| 866 | 867 |
| 867 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 868 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| OLD | NEW |