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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 bool IsMouseLocked(); | 680 bool IsMouseLocked(); |
681 bool LockMouse(); | 681 bool LockMouse(); |
682 MouseLockDispatcher* GetMouseLockDispatcher(); | 682 MouseLockDispatcher* GetMouseLockDispatcher(); |
683 MouseLockDispatcher::LockTarget* GetOrCreateLockTargetAdapter(); | 683 MouseLockDispatcher::LockTarget* GetOrCreateLockTargetAdapter(); |
684 void UnSetAndDeleteLockTargetAdapter(); | 684 void UnSetAndDeleteLockTargetAdapter(); |
685 | 685 |
686 void DidDataFromWebURLResponse(const blink::WebURLResponse& response, | 686 void DidDataFromWebURLResponse(const blink::WebURLResponse& response, |
687 int pending_host_id, | 687 int pending_host_id, |
688 const ppapi::URLResponseInfoData& data); | 688 const ppapi::URLResponseInfoData& data); |
689 | 689 |
690 // Peripheral content is cross-origin plugin content determined heuristically | |
691 // to be not the "main attraction" of the webpage. | |
692 bool IsPeripheralContent() const; | |
693 void SetPluginThrottled(bool throttled); | 690 void SetPluginThrottled(bool throttled); |
| 691 void DisablePowerSaverAndUnthrottle(); |
694 | 692 |
695 RenderFrameImpl* render_frame_; | 693 RenderFrameImpl* render_frame_; |
696 base::Closure instance_deleted_callback_; | 694 base::Closure instance_deleted_callback_; |
697 scoped_refptr<PluginModule> module_; | 695 scoped_refptr<PluginModule> module_; |
698 scoped_ptr<ppapi::PPP_Instance_Combined> instance_interface_; | 696 scoped_ptr<ppapi::PPP_Instance_Combined> instance_interface_; |
699 // If this is the NaCl plugin, we create a new module when we switch to the | 697 // If this is the NaCl plugin, we create a new module when we switch to the |
700 // IPC-based PPAPI proxy. Store the original module and instance interface | 698 // IPC-based PPAPI proxy. Store the original module and instance interface |
701 // so we can shut down properly. | 699 // so we can shut down properly. |
702 scoped_refptr<PluginModule> original_module_; | 700 scoped_refptr<PluginModule> original_module_; |
703 scoped_ptr<ppapi::PPP_Instance_Combined> original_instance_interface_; | 701 scoped_ptr<ppapi::PPP_Instance_Combined> original_instance_interface_; |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 // view change events. | 923 // view change events. |
926 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 924 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
927 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 925 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
928 | 926 |
929 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 927 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
930 }; | 928 }; |
931 | 929 |
932 } // namespace content | 930 } // namespace content |
933 | 931 |
934 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 932 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
OLD | NEW |