diff options
Diffstat (limited to 'chrome/renderer/render_process.h')
| -rw-r--r-- | chrome/renderer/render_process.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/renderer/render_process.h b/chrome/renderer/render_process.h index 49f43e2..9ecbb13 100644 --- a/chrome/renderer/render_process.h +++ b/chrome/renderer/render_process.h @@ -63,6 +63,9 @@ class RenderProcess : public ChildProcess { // this function to free the SharedMemory object. static void FreeSharedMemory(SharedMemory* mem); + // Deletes the shared memory allocated by AllocSharedMemory. + static void DeleteSharedMem(SharedMemory* mem); + private: friend class ChildProcessFactory<RenderProcess>; RenderProcess(const std::wstring& channel_name); @@ -83,10 +86,6 @@ class RenderProcess : public ChildProcess { static ChildProcess* ClassFactory(const std::wstring& channel_name); - // This is here so consumers will use FreeSharedMemory instead. A destructor - // on SharedMemory would be too tempting. - static void DeleteSharedMem(SharedMemory* mem); - // Look in the shared memory cache for a suitable object to reuse. Returns // NULL if there is none. SharedMemory* GetSharedMemFromCache(size_t size); |
