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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 OnThrottleStateChange() override; |
546 | 546 |
| 547 void UpdateVisibility(bool visible); |
| 548 |
547 void AddLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); | 549 void AddLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); |
548 | 550 |
549 private: | 551 private: |
550 friend class base::RefCounted<PepperPluginInstanceImpl>; | 552 friend class base::RefCounted<PepperPluginInstanceImpl>; |
551 friend class PpapiPluginInstanceTest; | 553 friend class PpapiPluginInstanceTest; |
552 friend class PpapiUnittest; | 554 friend class PpapiUnittest; |
553 | 555 |
554 // Delete should be called by the WebPlugin before this destructor. | 556 // Delete should be called by the WebPlugin before this destructor. |
555 ~PepperPluginInstanceImpl() override; | 557 ~PepperPluginInstanceImpl() override; |
556 | 558 |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 // view change events. | 933 // view change events. |
932 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 934 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
933 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 935 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
934 | 936 |
935 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 937 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
936 }; | 938 }; |
937 | 939 |
938 } // namespace content | 940 } // namespace content |
939 | 941 |
940 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 942 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
OLD | NEW |