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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 2180933002: Add experimental code behind a flag for Content Size Policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: while -> for Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 91226f87578512b1516706f852f25c009a18c5af..a75531d0a894bbf23d284e5de88a37b2e0b3f8f8 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -54,6 +54,7 @@ struct ViewHostMsg_DateTimeDialogValue_Params;
namespace content {
class BrowserPluginEmbedder;
class BrowserPluginGuest;
+class ContentSizeFrameCounter;
class DateTimeChooserAndroid;
class DownloadItem;
class FindRequestManager;
@@ -751,6 +752,10 @@ class CONTENT_EXPORT WebContentsImpl
return media_web_contents_observer_.get();
}
+ ContentSizeFrameCounter* content_size_frame_counter() {
+ return content_size_frame_counter_.get();
+ }
+
// Update the web contents visibility.
void UpdateWebContentsVisibility(bool visible);
@@ -1388,6 +1393,10 @@ class CONTENT_EXPORT WebContentsImpl
// Notifies ResourceDispatcherHostImpl of various events related to loading.
std::unique_ptr<LoaderIOThreadNotifier> loader_io_thread_notifier_;
+ // UI thread state needed for the ContentSizeResourceHandlerManager to
+ // properly enforce size policies.
+ std::unique_ptr<ContentSizeFrameCounter> content_size_frame_counter_;
+
// Manages media players, CDMs, and power save blockers for media.
std::unique_ptr<MediaWebContentsObserver> media_web_contents_observer_;
« no previous file with comments | « content/browser/loader/resource_request_info_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698