[Drive] Add converter from ResourceEntry to FileResource

BUG=240165

Review URL: https://chromiumcodereview.appspot.com/23437026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222006 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/drive/drive_api_util.h b/chrome/browser/drive/drive_api_util.h
index 2c9991d7..afeb2c3c 100644
--- a/chrome/browser/drive/drive_api_util.h
+++ b/chrome/browser/drive/drive_api_util.h
@@ -17,6 +17,11 @@
 class Value;
 }  // namespace base
 
+namespace google_apis {
+class FileResource;
+class ResourceEntry;
+}  // namespace google_apis
+
 namespace drive {
 namespace util {
 
@@ -62,6 +67,10 @@
                          google_apis::GDataErrorCode error,
                          scoped_ptr<base::Value> value);
 
+// Converts ResourceEntry to FileResource.
+scoped_ptr<google_apis::FileResource>
+ConvertResourceEntryToFileResource(const google_apis::ResourceEntry& entry);
+
 // The resource ID for the root directory for WAPI is defined in the spec:
 // https://developers.google.com/google-apps/documents-list/
 extern const char kWapiRootDirectoryResourceId[];