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

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

Issue 10828277: Get EntryKind from parsed FileResource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | chrome/browser/chromeos/gdata/drive_api_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/drive_api_parser.h
diff --git a/chrome/browser/chromeos/gdata/drive_api_parser.h b/chrome/browser/chromeos/gdata/drive_api_parser.h
index 7472677d09dce551cc434dba01a06d0c63dfcb8c..01a48ea6b6f1403159d6e666817790679565769d 100644
--- a/chrome/browser/chromeos/gdata/drive_api_parser.h
+++ b/chrome/browser/chromeos/gdata/drive_api_parser.h
@@ -15,6 +15,9 @@
#include "base/string_piece.h"
#include "base/time.h"
#include "googleurl/src/gurl.h"
+// TODO(kochi): Eliminate this dependency once dependency to EntryKind is gone.
+// http://crbug.com/142293
+#include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h"
namespace base {
class Value;
@@ -315,6 +318,11 @@ class FileResource {
// but outside this file we use "directory" to match HTML5 filesystem API.
bool IsDirectory() const;
+ // Returns EntryKind for this file.
+ // TODO(kochi): Remove this once FileResource is directly converted to proto.
+ // http://crbug.com/142293
+ DocumentEntry::EntryKind GetKind() const;
+
// Returns file ID. This is unique in all files in Google Drive.
const std::string& file_id() const { return file_id_; }
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/drive_api_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698