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

Unified Diff: base/files/memory_mapped_file.h

Issue 1156183003: Pass file Regions along with FDs to child processes on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add operator!= for Region Created 5 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 | « no previous file | base/files/memory_mapped_file.cc » ('j') | base/files/memory_mapped_file.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/memory_mapped_file.h
diff --git a/base/files/memory_mapped_file.h b/base/files/memory_mapped_file.h
index 8a7f045f351a0365d496f37f5824607cacfdc12e..96d1d91f9359b8c96c9646a444add20be2555472 100644
--- a/base/files/memory_mapped_file.h
+++ b/base/files/memory_mapped_file.h
@@ -28,9 +28,11 @@ class BASE_EXPORT MemoryMappedFile {
struct BASE_EXPORT Region {
static const Region kWholeFile;
+ Region();
Region(int64 offset, int64 size);
bool operator==(const Region& other) const;
+ bool operator!=(const Region& other) const;
// Start of the region (measured in bytes from the beginning of the file).
int64 offset;
@@ -39,8 +41,7 @@ class BASE_EXPORT MemoryMappedFile {
int64 size;
private:
- // This ctor is used only by kWholeFile, to construct a zero-sized Region
- // (which is forbidden by the public ctor) and uniquely identify kWholeFile.
+ // Used by kWholeFile.
Region(base::LinkerInitialized);
};
« no previous file with comments | « no previous file | base/files/memory_mapped_file.cc » ('j') | base/files/memory_mapped_file.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698