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

Unified Diff: base/shared_memory.h

Issue 7184032: Upstream android file related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 6 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
Index: base/shared_memory.h
diff --git a/base/shared_memory.h b/base/shared_memory.h
index cf07da326dad3885c91a27edc884ed87144f0c74..74e14aa68f7e183021ebb31c7a5cc432395c0e01 100644
--- a/base/shared_memory.h
+++ b/base/shared_memory.h
@@ -184,6 +184,11 @@ class BASE_API SharedMemory {
// Releases the shared memory lock.
void Unlock();
+#if defined(OS_ANDROID)
+ // Returns the size of shared memory or a negative value on error.
+ int GetAshmenSizeRegion();
darin (slow to review) 2011/06/21 18:44:02 I am still wondering why you need this method. If
+#endif
+
private:
#if defined(OS_POSIX)
bool PrepareMapFile(FILE *fp);

Powered by Google App Engine
This is Rietveld 408576698