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

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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 OnThrottleStateChange() override;
546 void OnHiddenForPlaceholder(bool hidden) 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
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_
OLDNEW
« no previous file with comments | « content/public/renderer/plugin_instance_throttler.h ('k') | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698