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; |
690 void SetPluginThrottled(bool throttled); | 693 void SetPluginThrottled(bool throttled); |
691 | 694 |
692 RenderFrameImpl* render_frame_; | 695 RenderFrameImpl* render_frame_; |
693 base::Closure instance_deleted_callback_; | 696 base::Closure instance_deleted_callback_; |
694 scoped_refptr<PluginModule> module_; | 697 scoped_refptr<PluginModule> module_; |
695 scoped_ptr<ppapi::PPP_Instance_Combined> instance_interface_; | 698 scoped_ptr<ppapi::PPP_Instance_Combined> instance_interface_; |
696 // If this is the NaCl plugin, we create a new module when we switch to the | 699 // If this is the NaCl plugin, we create a new module when we switch to the |
697 // IPC-based PPAPI proxy. Store the original module and instance interface | 700 // IPC-based PPAPI proxy. Store the original module and instance interface |
698 // so we can shut down properly. | 701 // so we can shut down properly. |
699 scoped_refptr<PluginModule> original_module_; | 702 scoped_refptr<PluginModule> original_module_; |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 // view change events. | 925 // view change events. |
923 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 926 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
924 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 927 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
925 | 928 |
926 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 929 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
927 }; | 930 }; |
928 | 931 |
929 } // namespace content | 932 } // namespace content |
930 | 933 |
931 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 934 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
OLD | NEW |