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

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: 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 28 matching lines...) Expand all
39 #include "third_party/WebKit/public/web/WebDragOperation.h" 39 #include "third_party/WebKit/public/web/WebDragOperation.h"
40 #include "ui/base/page_transition_types.h" 40 #include "ui/base/page_transition_types.h"
41 #include "ui/gfx/rect_f.h" 41 #include "ui/gfx/rect_f.h"
42 #include "ui/gfx/size.h" 42 #include "ui/gfx/size.h"
43 43
44 struct BrowserPluginHostMsg_ResizeGuest_Params; 44 struct BrowserPluginHostMsg_ResizeGuest_Params;
45 struct ViewHostMsg_DateTimeDialogValue_Params; 45 struct ViewHostMsg_DateTimeDialogValue_Params;
46 struct ViewMsg_PostMessage_Params; 46 struct ViewMsg_PostMessage_Params;
47 47
48 namespace content { 48 namespace content {
49 class BrowserPluginContentOriginWhitelist;
49 class BrowserPluginEmbedder; 50 class BrowserPluginEmbedder;
50 class BrowserPluginGuest; 51 class BrowserPluginGuest;
51 class BrowserPluginGuestManager; 52 class BrowserPluginGuestManager;
52 class DateTimeChooserAndroid; 53 class DateTimeChooserAndroid;
53 class DownloadItem; 54 class DownloadItem;
54 class GeolocationDispatcherHost; 55 class GeolocationDispatcherHost;
55 class GeolocationServiceContext; 56 class GeolocationServiceContext;
56 class InterstitialPageImpl; 57 class InterstitialPageImpl;
57 class JavaScriptDialogManager; 58 class JavaScriptDialogManager;
58 class ManifestManagerHost; 59 class ManifestManagerHost;
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 }; 1155 };
1155 1156
1156 scoped_ptr<ColorChooserInfo> color_chooser_info_; 1157 scoped_ptr<ColorChooserInfo> color_chooser_info_;
1157 1158
1158 // Manages the embedder state for browser plugins, if this WebContents is an 1159 // Manages the embedder state for browser plugins, if this WebContents is an
1159 // embedder; NULL otherwise. 1160 // embedder; NULL otherwise.
1160 scoped_ptr<BrowserPluginEmbedder> browser_plugin_embedder_; 1161 scoped_ptr<BrowserPluginEmbedder> browser_plugin_embedder_;
1161 // Manages the guest state for browser plugin, if this WebContents is a guest; 1162 // Manages the guest state for browser plugin, if this WebContents is a guest;
1162 // NULL otherwise. 1163 // NULL otherwise.
1163 scoped_ptr<BrowserPluginGuest> browser_plugin_guest_; 1164 scoped_ptr<BrowserPluginGuest> browser_plugin_guest_;
1165 #if defined(ENABLE_PLUGINS)
1166 // Manages the whitelist of plugin content origins exempt from power saving.
1167 scoped_ptr<BrowserPluginContentOriginWhitelist>
1168 browser_plugin_content_origin_whitelist_;
1169 #endif
1164 1170
1165 // This must be at the end, or else we might get notifications and use other 1171 // This must be at the end, or else we might get notifications and use other
1166 // member variables that are gone. 1172 // member variables that are gone.
1167 NotificationRegistrar registrar_; 1173 NotificationRegistrar registrar_;
1168 1174
1169 // Used during IPC message dispatching from the RenderView/RenderFrame so that 1175 // Used during IPC message dispatching from the RenderView/RenderFrame so that
1170 // the handlers can get a pointer to the RVH through which the message was 1176 // the handlers can get a pointer to the RVH through which the message was
1171 // received. 1177 // received.
1172 RenderViewHost* render_view_message_source_; 1178 RenderViewHost* render_view_message_source_;
1173 RenderFrameHost* render_frame_message_source_; 1179 RenderFrameHost* render_frame_message_source_;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 scoped_ptr<WebContentsAudioMuter> audio_muter_; 1227 scoped_ptr<WebContentsAudioMuter> audio_muter_;
1222 1228
1223 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; 1229 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
1224 1230
1225 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1231 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1226 }; 1232 };
1227 1233
1228 } // namespace content 1234 } // namespace content
1229 1235
1230 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1236 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698