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

Unified Diff: content/renderer/render_frame_impl.h

Issue 2627393002: Replace std::map with std::pair for (origin, engagement) tuples in RenderFrameImpl. (Closed)
Patch Set: Address comment Created 3 years, 11 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
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index f4159894cc4a79d17c5a222ead66b614c8297cf2..53041fd826710fc60da926c5cf92860491bb979f 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -767,7 +767,8 @@ class CONTENT_EXPORT RenderFrameImpl
};
typedef std::map<GURL, double> HostZoomLevels;
- typedef std::map<url::Origin, blink::mojom::EngagementLevel> EngagementLevels;
+ typedef std::pair<url::Origin, blink::mojom::EngagementLevel>
+ EngagementOriginAndLevel;
// Creates a new RenderFrame. |render_view| is the RenderView object that this
// frame belongs to.
@@ -1356,7 +1357,7 @@ class CONTENT_EXPORT RenderFrameImpl
#endif
HostZoomLevels host_zoom_levels_;
- EngagementLevels engagement_levels_;
+ EngagementOriginAndLevel engagement_level_;
mojo::AssociatedBinding<blink::mojom::EngagementClient> engagement_binding_;
mojo::Binding<mojom::Frame> frame_binding_;
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698