Index: chrome/browser/chromeos/gdata/gdata_files.h |
diff --git a/chrome/browser/chromeos/gdata/gdata_files.h b/chrome/browser/chromeos/gdata/gdata_files.h |
index 62fd4f12f87d1ef6ed026b04a090ea2afb672afb..16ac0899fcb519de761a14279a0e6b73fdca708f 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_files.h |
+++ b/chrome/browser/chromeos/gdata/gdata_files.h |
@@ -156,6 +156,7 @@ class GDataFile : public GDataFileBase { |
CACHE_STATE_PINNED = 0x1 << 0, |
CACHE_STATE_PRESENT = 0x1 << 1, |
CACHE_STATE_DIRTY = 0x1 << 2, |
+ CACHE_STATE_MOUNTED = 0x1 << 3, |
}; |
explicit GDataFile(GDataDirectory* parent, GDataRootDirectory* root); |
@@ -179,6 +180,9 @@ class GDataFile : public GDataFileBase { |
static bool IsCacheDirty(int cache_state) { |
return cache_state & CACHE_STATE_DIRTY; |
} |
+ static bool IsCacheMounted(int cache_state) { |
+ return cache_state & CACHE_STATE_MOUNTED; |
+ } |
static int SetCachePresent(int cache_state) { |
return cache_state |= CACHE_STATE_PRESENT; |
} |
@@ -188,6 +192,9 @@ class GDataFile : public GDataFileBase { |
static int SetCacheDirty(int cache_state) { |
return cache_state |= CACHE_STATE_DIRTY; |
} |
+ static int SetCacheMounted(int cache_state) { |
+ return cache_state |= CACHE_STATE_MOUNTED; |
+ } |
static int ClearCachePresent(int cache_state) { |
return cache_state &= ~CACHE_STATE_PRESENT; |
} |
@@ -197,6 +204,9 @@ class GDataFile : public GDataFileBase { |
static int ClearCacheDirty(int cache_state) { |
return cache_state &= ~CACHE_STATE_DIRTY; |
} |
+ static int ClearCacheMounted(int cache_state) { |
+ return cache_state &= ~CACHE_STATE_MOUNTED; |
+ } |
DocumentEntry::EntryKind kind() const { return kind_; } |
const GURL& thumbnail_url() const { return thumbnail_url_; } |
@@ -347,6 +357,9 @@ class GDataRootDirectory : public GDataDirectory { |
bool IsDirty() const { |
return GDataFile::IsCacheDirty(cache_state); |
} |
+ bool IsMounted() const { |
+ return GDataFile::IsCacheMounted(cache_state); |
+ } |
// For debugging purposes. |
std::string ToString() const; |