Chromium Code Reviews| 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 bool IsPeripheralContent() const; | |
|
Charlie Reis
2014/10/23 18:23:27
I haven't heard the term peripheral content before
tommycli
2014/10/23 19:32:23
Added comments.
| |
| 690 void SetPluginThrottled(bool throttled); | 691 void SetPluginThrottled(bool throttled); |
| 691 | 692 |
| 692 RenderFrameImpl* render_frame_; | 693 RenderFrameImpl* render_frame_; |
| 693 base::Closure instance_deleted_callback_; | 694 base::Closure instance_deleted_callback_; |
| 694 scoped_refptr<PluginModule> module_; | 695 scoped_refptr<PluginModule> module_; |
| 695 scoped_ptr<ppapi::PPP_Instance_Combined> instance_interface_; | 696 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 | 697 // 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 | 698 // IPC-based PPAPI proxy. Store the original module and instance interface |
| 698 // so we can shut down properly. | 699 // so we can shut down properly. |
| 699 scoped_refptr<PluginModule> original_module_; | 700 scoped_refptr<PluginModule> original_module_; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 922 // view change events. | 923 // view change events. |
| 923 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 924 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
| 924 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 925 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
| 925 | 926 |
| 926 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 927 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
| 927 }; | 928 }; |
| 928 | 929 |
| 929 } // namespace content | 930 } // namespace content |
| 930 | 931 |
| 931 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 932 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| OLD | NEW |