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

Unified Diff: content/browser/frame_host/render_frame_host_manager.h

Issue 1608743004: Switch RenderFrameHost pending deletion list to use scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/browser/frame_host/render_frame_host_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_manager.h
diff --git a/content/browser/frame_host/render_frame_host_manager.h b/content/browser/frame_host/render_frame_host_manager.h
index c84167220307a1839b86edaac60259ca06e451d9..e208aa4c9838313cb287f466e8374cdb48ca03eb 100644
--- a/content/browser/frame_host/render_frame_host_manager.h
+++ b/content/browser/frame_host/render_frame_host_manager.h
@@ -754,10 +754,8 @@ class CONTENT_EXPORT RenderFrameHostManager
base::ScopedPtrHashMap<int32_t, scoped_ptr<RenderFrameProxyHost>>
proxy_hosts_;
- // A list of RenderFrameHosts waiting to shut down after swapping out. We use
- // a linked list since we expect frequent deletes and no indexed access, and
- // because sets don't appear to support linked_ptrs.
- typedef std::list<linked_ptr<RenderFrameHostImpl> > RFHPendingDeleteList;
+ // A list of RenderFrameHosts waiting to shut down after swapping out.
+ using RFHPendingDeleteList = std::list<scoped_ptr<RenderFrameHostImpl>>;
dcheng 2016/01/20 08:55:20 Note: I could use std::set, but that still doesn't
Charlie Reis 2016/01/20 22:03:23 No, this seems fine.
RFHPendingDeleteList pending_delete_hosts_;
// The intersitial page currently shown if any, not own by this class
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698