| 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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 // cc::TextureLayerClient implementation. | 535 // cc::TextureLayerClient implementation. |
| 536 bool PrepareTextureMailbox( | 536 bool PrepareTextureMailbox( |
| 537 cc::TextureMailbox* mailbox, | 537 cc::TextureMailbox* mailbox, |
| 538 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 538 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
| 539 bool use_shared_memory) override; | 539 bool use_shared_memory) override; |
| 540 | 540 |
| 541 // RenderFrameObserver | 541 // RenderFrameObserver |
| 542 void OnDestruct() override; | 542 void OnDestruct() override; |
| 543 | 543 |
| 544 // PluginInstanceThrottler::Observer | 544 // PluginInstanceThrottler::Observer |
| 545 void OnThrottleStateChange() override; | 545 void OnPowerSaverStateChange( |
| 546 PluginInstanceThrottler::PowerSaverState state) override; |
| 546 | 547 |
| 547 void AddLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); | 548 void AddLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); |
| 548 | 549 |
| 549 private: | 550 private: |
| 550 friend class base::RefCounted<PepperPluginInstanceImpl>; | 551 friend class base::RefCounted<PepperPluginInstanceImpl>; |
| 551 friend class PpapiPluginInstanceTest; | 552 friend class PpapiPluginInstanceTest; |
| 552 friend class PpapiUnittest; | 553 friend class PpapiUnittest; |
| 553 | 554 |
| 554 // Delete should be called by the WebPlugin before this destructor. | 555 // Delete should be called by the WebPlugin before this destructor. |
| 555 ~PepperPluginInstanceImpl() override; | 556 ~PepperPluginInstanceImpl() override; |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 // view change events. | 932 // view change events. |
| 932 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 933 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
| 933 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 934 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
| 934 | 935 |
| 935 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 936 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
| 936 }; | 937 }; |
| 937 | 938 |
| 938 } // namespace content | 939 } // namespace content |
| 939 | 940 |
| 940 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 941 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| OLD | NEW |