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

Unified Diff: chrome/common/resource_dispatcher.h

Issue 115396: Fix a memory leak in ResourceDispatcher... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « base/shared_memory_win.cc ('k') | chrome/common/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/resource_dispatcher.h
===================================================================
--- chrome/common/resource_dispatcher.h (revision 15966)
+++ chrome/common/resource_dispatcher.h (working copy)
@@ -114,6 +114,12 @@
// Returns true if the message passed in is a resource related message.
static bool IsResourceDispatcherMessage(const IPC::Message& message);
+ // ViewHostMsg_Resource_DataReceived is not POD, it has a shared memory
+ // handle in it that we should cleanup it up nicely. This method accepts any
+ // message and determine whether the message is
+ // ViewHostMsg_Resource_DataReceived and clean up the shared memory handle.
+ void ReleaseResourcesInDataMessage(const IPC::Message& message);
+
IPC::Message::Sender* message_sender_;
// All pending requests issued to the host
« no previous file with comments | « base/shared_memory_win.cc ('k') | chrome/common/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698