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

Unified Diff: chrome/browser/resource_dispatcher_host.h

Issue 10925: Fix erase method usage on STL containers in Chrome. Invoking erase on the ite... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resource_dispatcher_host.h
===================================================================
--- chrome/browser/resource_dispatcher_host.h (revision 5528)
+++ chrome/browser/resource_dispatcher_host.h (working copy)
@@ -414,7 +414,10 @@
const std::string& content_disposition);
void RemovePendingRequest(int render_process_host_id, int request_id);
- void RemovePendingRequest(PendingRequestList::iterator& iter);
+ // Deletes the pending request identified by the iterator passed in.
+ // This function will invalidate the iterator passed in. Callers should
+ // not rely on this iterator being valid on return.
+ void RemovePendingRequest(const PendingRequestList::iterator& iter);
// Notify our observers that we started receiving a response for a request.
void NotifyResponseStarted(URLRequest* request, int render_process_host_id);

Powered by Google App Engine
This is Rietveld 408576698