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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 680193002: Plugin Power Saver: Implement size-based heuristic for peripheral content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change mechanism to look at top level navigation instead of renderframe lifecycle Created 6 years, 1 month 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 const gfx::RectF& active_rect); 766 const gfx::RectF& active_rect);
767 767
768 void OnOpenDateTimeDialog( 768 void OnOpenDateTimeDialog(
769 const ViewHostMsg_DateTimeDialogValue_Params& value); 769 const ViewHostMsg_DateTimeDialogValue_Params& value);
770 #endif 770 #endif
771 void OnPepperPluginHung(int plugin_child_id, 771 void OnPepperPluginHung(int plugin_child_id,
772 const base::FilePath& path, 772 const base::FilePath& path,
773 bool is_hung); 773 bool is_hung);
774 void OnPluginCrashed(const base::FilePath& plugin_path, 774 void OnPluginCrashed(const base::FilePath& plugin_path,
775 base::ProcessId plugin_pid); 775 base::ProcessId plugin_pid);
776 void OnPluginContentOriginAllowed(const GURL& content_origin);
776 void OnDomOperationResponse(const std::string& json_string, 777 void OnDomOperationResponse(const std::string& json_string,
777 int automation_id); 778 int automation_id);
778 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); 779 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy);
779 void OnOpenColorChooser(int color_chooser_id, 780 void OnOpenColorChooser(int color_chooser_id,
780 SkColor color, 781 SkColor color,
781 const std::vector<ColorSuggestion>& suggestions); 782 const std::vector<ColorSuggestion>& suggestions);
782 void OnEndColorChooser(int color_chooser_id); 783 void OnEndColorChooser(int color_chooser_id);
783 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); 784 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color);
784 void OnWebUISend(const GURL& source_url, 785 void OnWebUISend(const GURL& source_url,
785 const std::string& name, 786 const std::string& name,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 #endif 984 #endif
984 985
985 // Helper classes ------------------------------------------------------------ 986 // Helper classes ------------------------------------------------------------
986 987
987 // Tracking variables and associated power save blockers for media playback. 988 // Tracking variables and associated power save blockers for media playback.
988 ActiveMediaPlayerMap active_audio_players_; 989 ActiveMediaPlayerMap active_audio_players_;
989 ActiveMediaPlayerMap active_video_players_; 990 ActiveMediaPlayerMap active_video_players_;
990 scoped_ptr<PowerSaveBlocker> audio_power_save_blocker_; 991 scoped_ptr<PowerSaveBlocker> audio_power_save_blocker_;
991 scoped_ptr<PowerSaveBlocker> video_power_save_blocker_; 992 scoped_ptr<PowerSaveBlocker> video_power_save_blocker_;
992 993
994 #if defined(ENABLE_PLUGINS)
995 // Plugin content origins that have been whitelisted.
996 typedef std::set<GURL> PluginContentOriginSet;
997 PluginContentOriginSet plugin_content_origin_whitelist_;
998 #endif
999
993 // Manages the frame tree of the page and process swaps in each node. 1000 // Manages the frame tree of the page and process swaps in each node.
994 FrameTree frame_tree_; 1001 FrameTree frame_tree_;
995 1002
996 // SavePackage, lazily created. 1003 // SavePackage, lazily created.
997 scoped_refptr<SavePackage> save_package_; 1004 scoped_refptr<SavePackage> save_package_;
998 1005
999 // Data for loading state ---------------------------------------------------- 1006 // Data for loading state ----------------------------------------------------
1000 1007
1001 // Indicates whether we're currently loading a resource. 1008 // Indicates whether we're currently loading a resource.
1002 bool is_loading_; 1009 bool is_loading_;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 scoped_ptr<WebContentsAudioMuter> audio_muter_; 1220 scoped_ptr<WebContentsAudioMuter> audio_muter_;
1214 1221
1215 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; 1222 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
1216 1223
1217 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1224 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1218 }; 1225 };
1219 1226
1220 } // namespace content 1227 } // namespace content
1221 1228
1222 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1229 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('j') | content/renderer/pepper/plugin_power_saver_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698