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

Unified Diff: content/renderer/render_frame_proxy.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Exclude certain files from jumbo because of a Windows problem Created 3 years, 3 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 | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_proxy.cc
diff --git a/content/renderer/render_frame_proxy.cc b/content/renderer/render_frame_proxy.cc
index a5d43cba3a262eca6dc201cf68b5b141688a99d0..7dba920e9c384214dd4420a9eaa4e7c15cace47f 100644
--- a/content/renderer/render_frame_proxy.cc
+++ b/content/renderer/render_frame_proxy.cc
@@ -50,8 +50,8 @@ static base::LazyInstance<RoutingIDProxyMap>::DestructorAtExit
g_routing_id_proxy_map = LAZY_INSTANCE_INITIALIZER;
// Facilitates lookup of RenderFrameProxy by WebRemoteFrame.
-typedef std::map<blink::WebRemoteFrame*, RenderFrameProxy*> FrameMap;
-base::LazyInstance<FrameMap>::DestructorAtExit g_frame_map =
+typedef std::map<blink::WebRemoteFrame*, RenderFrameProxy*> FrameProxyMap;
+base::LazyInstance<FrameProxyMap>::DestructorAtExit g_frame_proxy_map =
LAZY_INSTANCE_INITIALIZER;
} // namespace
@@ -163,8 +163,8 @@ RenderFrameProxy* RenderFrameProxy::FromWebFrame(
blink::WebRemoteFrame* web_frame) {
// TODO(dcheng): Turn this into a DCHECK() if it doesn't crash on canary.
CHECK(web_frame);
- FrameMap::iterator iter = g_frame_map.Get().find(web_frame);
- if (iter != g_frame_map.Get().end()) {
+ FrameProxyMap::iterator iter = g_frame_proxy_map.Get().find(web_frame);
+ if (iter != g_frame_proxy_map.Get().end()) {
RenderFrameProxy* proxy = iter->second;
DCHECK_EQ(web_frame, proxy->web_frame());
return proxy;
@@ -210,8 +210,8 @@ void RenderFrameProxy::Init(blink::WebRemoteFrame* web_frame,
render_widget_->RegisterRenderFrameProxy(this);
- std::pair<FrameMap::iterator, bool> result =
- g_frame_map.Get().insert(std::make_pair(web_frame_, this));
+ std::pair<FrameProxyMap::iterator, bool> result =
+ g_frame_proxy_map.Get().insert(std::make_pair(web_frame_, this));
CHECK(result.second) << "Inserted a duplicate item.";
const base::CommandLine& command_line =
@@ -482,10 +482,10 @@ void RenderFrameProxy::FrameDetached(DetachType type) {
// Remove the entry in the WebFrame->RenderFrameProxy map, as the |web_frame_|
// is no longer valid.
- FrameMap::iterator it = g_frame_map.Get().find(web_frame_);
- CHECK(it != g_frame_map.Get().end());
+ FrameProxyMap::iterator it = g_frame_proxy_map.Get().find(web_frame_);
+ CHECK(it != g_frame_proxy_map.Get().end());
CHECK_EQ(it->second, this);
- g_frame_map.Get().erase(it);
+ g_frame_proxy_map.Get().erase(it);
web_frame_ = nullptr;
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698