Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(701)

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 669703003: Plugin Power Saver: Restrict Power Saver to cross-origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698