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..b2557d8dd02d6415a590aa2d99940412cc070344 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_file_system.h |
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.h |
@@ -6,6 +6,8 @@ |
#define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
#include <map> |
+#include <utility> |
+#include <vector> |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/singleton.h" |
@@ -67,6 +69,15 @@ typedef std::map<FilePath::StringType, GDataFileBase*> GDataFileCollection; |
// this could be either a regular file or a server side document. |
class GDataFile : public GDataFileBase { |
public: |
+ typedef std::vector<std::pair<std::string, std::string> > AuthorList; |
+ |
+ // 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 +87,29 @@ 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_; } |
achuithb
2012/02/29 23:33:06
const int?
Greg Spencer (Chromium)
2012/03/01 02:26:32
Haha! Yes, they're so much more constant this way.
|
+ const AuthorList& authors() const { return authors_; } |
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_; |
+ AuthorList authors_; |
zel
2012/02/29 23:46:38
let's just drop authors for there altogether... we
Greg Spencer (Chromium)
2012/03/01 02:26:32
Done.
|
+ std::string author_email_; |
+ int pinned_state_; |
DISALLOW_COPY_AND_ASSIGN(GDataFile); |
}; |
@@ -334,7 +353,7 @@ class GDataFileSystemFactory : public ProfileKeyedServiceFactory { |
// yet created. |
static GDataFileSystem* GetForProfile(Profile* profile); |
- // Returns the GDataFileSystemFactory instance. |
+ // Returns the GDataFileSystemFactory instance. |
static GDataFileSystemFactory* GetInstance(); |
private: |