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

Unified Diff: chrome/renderer/render_process.h

Issue 10895: Add Terminate() to the Process object, have RenderProcessHost use this to avo... (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
« no previous file with comments | « chrome/renderer/greasemonkey_slave_unittest.cc ('k') | chrome/renderer/render_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_process.h
===================================================================
--- chrome/renderer/render_process.h (revision 5371)
+++ chrome/renderer/render_process.h (working copy)
@@ -30,14 +30,14 @@
// reported in the resulting SharedMemory object will be greater than or
// equal to the requested size. This method returns NULL if unable to
// allocate memory for some reason.
- static SharedMemory* AllocSharedMemory(size_t size);
+ static base::SharedMemory* AllocSharedMemory(size_t size);
// Frees shared memory allocated by AllocSharedMemory. You should only use
// this function to free the SharedMemory object.
- static void FreeSharedMemory(SharedMemory* mem);
+ static void FreeSharedMemory(base::SharedMemory* mem);
// Deletes the shared memory allocated by AllocSharedMemory.
- static void DeleteSharedMem(SharedMemory* mem);
+ static void DeleteSharedMem(base::SharedMemory* mem);
private:
friend class ChildProcessFactory<RenderProcess>;
@@ -54,12 +54,12 @@
// Look in the shared memory cache for a suitable object to reuse. Returns
// NULL if there is none.
- SharedMemory* GetSharedMemFromCache(size_t size);
+ base::SharedMemory* GetSharedMemFromCache(size_t size);
// Maybe put the given shared memory into the shared memory cache. Returns
// true if the SharedMemory object was stored in the cache; otherwise, false
// is returned.
- bool PutSharedMemInCache(SharedMemory* mem);
+ bool PutSharedMemInCache(base::SharedMemory* mem);
void ClearSharedMemCache();
@@ -76,7 +76,7 @@
// A very simplistic and small cache. If an entry in this array is non-null,
// then it points to a SharedMemory object that is available for reuse.
- SharedMemory* shared_mem_cache_[2];
+ base::SharedMemory* shared_mem_cache_[2];
// This factory is used to lazily invoke ClearSharedMemCache.
ScopedRunnableMethodFactory<RenderProcess> clearer_factory_;
« no previous file with comments | « chrome/renderer/greasemonkey_slave_unittest.cc ('k') | chrome/renderer/render_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698