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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system.h

Issue 9545006: This adds some GData private API to the file manager (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Review changes and rework Created 8 years, 10 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: chrome/browser/chromeos/gdata/gdata_file_system.h
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.h b/chrome/browser/chromeos/gdata/gdata_file_system.h
index 02ccafa7743a969decda24e82884034e980f78ef..66322d1d3b51dbd397c9a458fa429824afefa6bb 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.h
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.h
@@ -67,6 +67,13 @@ typedef std::map<FilePath::StringType, GDataFileBase*> GDataFileCollection;
// this could be either a regular file or a server side document.
class GDataFile : public GDataFileBase {
public:
+ // This is used as a bitmask for the pinned state.
+ enum PinnedState {
+ PINNED_STATE_NONE = 0x0,
+ PINNED_STATE_PINNED = 0x1 << 0,
+ PINNED_STATE_PRESENT = 0x1 << 1,
+ };
+
explicit GDataFile(GDataDirectory* parent);
virtual ~GDataFile();
virtual GDataFile* AsGDataFile() OVERRIDE;
@@ -76,21 +83,26 @@ class GDataFile : public GDataFileBase {
DocumentEntry::EntryKind kind() const { return kind_; }
const GURL& content_url() const { return content_url_; }
+ const GURL& thumbnail_url() const { return thumbnail_url_; }
const std::string& content_mime_type() const { return content_mime_type_; }
const std::string& etag() const { return etag_; }
const std::string& resource() const { return resource_id_; }
const std::string& id() const { return id_; }
const std::string& file_md5() const { return file_md5_; }
+ // Returns a bitmask of PinnedState enum values.
+ const int pinned_state() const { return pinned_state_; }
private:
// Content URL for files.
DocumentEntry::EntryKind kind_;
GURL content_url_;
+ GURL thumbnail_url_;
std::string content_mime_type_;
std::string etag_;
std::string resource_id_;
std::string id_;
std::string file_md5_;
+ int pinned_state_;
DISALLOW_COPY_AND_ASSIGN(GDataFile);
};
@@ -334,7 +346,7 @@ class GDataFileSystemFactory : public ProfileKeyedServiceFactory {
// yet created.
static GDataFileSystem* GetForProfile(Profile* profile);
- // Returns the GDataFileSystemFactory instance.
+ // Returns the GDataFileSystemFactory instance.
Greg Spencer (Chromium) 2012/03/01 02:31:47 This is different (even if Rietveld doesn't show i
static GDataFileSystemFactory* GetInstance();
private:

Powered by Google App Engine
This is Rietveld 408576698