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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 // hosts won't recognize it as a valid instance of the original module. This | 502 // hosts won't recognize it as a valid instance of the original module. This |
503 // method fixes that be checking that either module_ or original_module_ match | 503 // method fixes that be checking that either module_ or original_module_ match |
504 // the given module. | 504 // the given module. |
505 bool IsValidInstanceOf(PluginModule* module); | 505 bool IsValidInstanceOf(PluginModule* module); |
506 | 506 |
507 // Returns the plugin NPP identifier that this plugin will use to identify | 507 // Returns the plugin NPP identifier that this plugin will use to identify |
508 // itself when making NPObject scripting calls to WebBindings. | 508 // itself when making NPObject scripting calls to WebBindings. |
509 struct _NPP* instanceNPP(); | 509 struct _NPP* instanceNPP(); |
510 | 510 |
511 // cc::TextureLayerClient implementation. | 511 // cc::TextureLayerClient implementation. |
512 virtual unsigned PrepareTexture() OVERRIDE; | |
513 virtual bool PrepareTextureMailbox( | 512 virtual bool PrepareTextureMailbox( |
514 cc::TextureMailbox* mailbox, | 513 cc::TextureMailbox* mailbox, |
515 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 514 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
516 bool use_shared_memory) OVERRIDE; | 515 bool use_shared_memory) OVERRIDE; |
517 | 516 |
518 // RenderFrameObserver | 517 // RenderFrameObserver |
519 virtual void OnDestruct() OVERRIDE; | 518 virtual void OnDestruct() OVERRIDE; |
520 | 519 |
521 private: | 520 private: |
522 friend class base::RefCounted<PepperPluginInstanceImpl>; | 521 friend class base::RefCounted<PepperPluginInstanceImpl>; |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 886 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
888 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 887 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
889 | 888 |
890 friend class PpapiPluginInstanceTest; | 889 friend class PpapiPluginInstanceTest; |
891 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 890 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
892 }; | 891 }; |
893 | 892 |
894 } // namespace content | 893 } // namespace content |
895 | 894 |
896 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 895 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
OLD | NEW |