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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 // Returns the plugin NPP identifier that this plugin will use to identify | 492 // Returns the plugin NPP identifier that this plugin will use to identify |
493 // itself when making NPObject scripting calls to WebBindings. | 493 // itself when making NPObject scripting calls to WebBindings. |
494 struct _NPP* instanceNPP(); | 494 struct _NPP* instanceNPP(); |
495 | 495 |
496 // Returns the v8::Isolate that was current when this Instance was created. | 496 // Returns the v8::Isolate that was current when this Instance was created. |
497 // This is not inlined so as to avoid an unnecessary header include of v8.h. | 497 // This is not inlined so as to avoid an unnecessary header include of v8.h. |
498 v8::Isolate* GetIsolate() const; | 498 v8::Isolate* GetIsolate() const; |
499 | 499 |
500 // cc::TextureLayerClient implementation. | 500 // cc::TextureLayerClient implementation. |
501 virtual unsigned PrepareTexture() OVERRIDE; | 501 virtual unsigned PrepareTexture() OVERRIDE; |
502 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE; | 502 virtual bool IsContextLost() OVERRIDE; |
| 503 virtual void RateLimitContext() OVERRIDE; |
503 virtual bool PrepareTextureMailbox( | 504 virtual bool PrepareTextureMailbox( |
504 cc::TextureMailbox* mailbox, | 505 cc::TextureMailbox* mailbox, |
505 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 506 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
506 bool use_shared_memory) OVERRIDE; | 507 bool use_shared_memory) OVERRIDE; |
507 | 508 |
508 private: | 509 private: |
509 friend class base::RefCounted<PepperPluginInstanceImpl>; | 510 friend class base::RefCounted<PepperPluginInstanceImpl>; |
510 friend class PpapiUnittest; | 511 friend class PpapiUnittest; |
511 | 512 |
512 // Delete should be called by the WebPlugin before this destructor. | 513 // Delete should be called by the WebPlugin before this destructor. |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 // view change events. | 860 // view change events. |
860 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 861 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
861 | 862 |
862 friend class PpapiPluginInstanceTest; | 863 friend class PpapiPluginInstanceTest; |
863 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 864 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
864 }; | 865 }; |
865 | 866 |
866 } // namespace content | 867 } // namespace content |
867 | 868 |
868 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 869 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
OLD | NEW |