| 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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 blink::WebPluginContainer* container_; | 706 blink::WebPluginContainer* container_; |
| 707 scoped_refptr<cc::Layer> compositor_layer_; | 707 scoped_refptr<cc::Layer> compositor_layer_; |
| 708 scoped_refptr<cc::TextureLayer> texture_layer_; | 708 scoped_refptr<cc::TextureLayer> texture_layer_; |
| 709 scoped_ptr<blink::WebLayer> web_layer_; | 709 scoped_ptr<blink::WebLayer> web_layer_; |
| 710 bool layer_bound_to_fullscreen_; | 710 bool layer_bound_to_fullscreen_; |
| 711 bool layer_is_hardware_; | 711 bool layer_is_hardware_; |
| 712 | 712 |
| 713 // Plugin URL. | 713 // Plugin URL. |
| 714 GURL plugin_url_; | 714 GURL plugin_url_; |
| 715 | 715 |
| 716 // Set to true first time plugin is clicked. Used to collect metrics. |
| 717 bool has_been_clicked_; |
| 718 |
| 716 // Indicates whether this plugin may be throttled to reduce power consumption. | 719 // Indicates whether this plugin may be throttled to reduce power consumption. |
| 717 // |power_saver_enabled_| implies |is_peripheral_content_|. | 720 // |power_saver_enabled_| implies |is_peripheral_content_|. |
| 718 bool power_saver_enabled_; | 721 bool power_saver_enabled_; |
| 719 | 722 |
| 720 // Indicates whether this plugin was found to be peripheral content. | 723 // Indicates whether this plugin was found to be peripheral content. |
| 721 // This is separately tracked from |power_saver_enabled_| to collect UMAs. | 724 // This is separately tracked from |power_saver_enabled_| to collect UMAs. |
| 722 // Always true if |power_saver_enabled_| is true. | 725 // Always true if |power_saver_enabled_| is true. |
| 723 bool is_peripheral_content_; | 726 bool is_peripheral_content_; |
| 724 | 727 |
| 725 // Indicates if the plugin is currently throttled. | 728 // Indicates if the plugin is currently throttled. |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 // view change events. | 932 // view change events. |
| 930 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 933 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
| 931 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 934 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
| 932 | 935 |
| 933 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 936 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
| 934 }; | 937 }; |
| 935 | 938 |
| 936 } // namespace content | 939 } // namespace content |
| 937 | 940 |
| 938 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 941 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| OLD | NEW |