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 WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 PP_Resource decrypted_samples, | 486 PP_Resource decrypted_samples, |
487 const PP_DecryptedBlockInfo* block_info) OVERRIDE; | 487 const PP_DecryptedBlockInfo* block_info) OVERRIDE; |
488 | 488 |
489 // Reset this instance as proxied. Resets cached interfaces to point to the | 489 // Reset this instance as proxied. Resets cached interfaces to point to the |
490 // proxy and re-sends DidCreate, DidChangeView, and HandleDocumentLoad (if | 490 // proxy and re-sends DidCreate, DidChangeView, and HandleDocumentLoad (if |
491 // necessary). | 491 // necessary). |
492 // This is for use with the NaCl proxy. | 492 // This is for use with the NaCl proxy. |
493 bool ResetAsProxied(scoped_refptr<PluginModule> module); | 493 bool ResetAsProxied(scoped_refptr<PluginModule> module); |
494 | 494 |
495 private: | 495 private: |
| 496 friend class PpapiUnittest; |
| 497 |
496 // Implements PPB_Gamepad_API. This is just to avoid having an excessive | 498 // Implements PPB_Gamepad_API. This is just to avoid having an excessive |
497 // number of interfaces implemented by PluginInstance. | 499 // number of interfaces implemented by PluginInstance. |
498 class GamepadImpl : public ::ppapi::thunk::PPB_Gamepad_API { | 500 class GamepadImpl : public ::ppapi::thunk::PPB_Gamepad_API { |
499 public: | 501 public: |
500 explicit GamepadImpl(PluginDelegate* delegate); | 502 explicit GamepadImpl(PluginDelegate* delegate); |
501 virtual void Sample(PP_GamepadsSampleData* data) OVERRIDE; | 503 virtual void Sample(PP_GamepadsSampleData* data) OVERRIDE; |
502 private: | 504 private: |
503 PluginDelegate* delegate_; | 505 PluginDelegate* delegate_; |
504 }; | 506 }; |
505 | 507 |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 typedef std::map<uint32_t, media::Decryptor::DecryptCB> DecryptionCBMap; | 786 typedef std::map<uint32_t, media::Decryptor::DecryptCB> DecryptionCBMap; |
785 DecryptionCBMap pending_decryption_cbs_; | 787 DecryptionCBMap pending_decryption_cbs_; |
786 | 788 |
787 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 789 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
788 }; | 790 }; |
789 | 791 |
790 } // namespace ppapi | 792 } // namespace ppapi |
791 } // namespace webkit | 793 } // namespace webkit |
792 | 794 |
793 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 795 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
OLD | NEW |