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

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

Issue 866173002: Plugin Power Saver: Add UI Overlay to throttled plugin using placeholder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698