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

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

Issue 10836354: Rename GData* to Drive* in gdata.proto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. 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
Index: chrome/browser/chromeos/gdata/gdata_directory_service.h
diff --git a/chrome/browser/chromeos/gdata/gdata_directory_service.h b/chrome/browser/chromeos/gdata/gdata_directory_service.h
index 4f3a101840a93a09a0b96cd20153c5b4168ce014..d26deb53df856c7c2cedff0faf2e77588bfe2f7d 100644
--- a/chrome/browser/chromeos/gdata/gdata_directory_service.h
+++ b/chrome/browser/chromeos/gdata/gdata_directory_service.h
@@ -24,13 +24,13 @@ namespace gdata {
struct CreateDBParams;
class DocumentEntry;
+class DriveEntryProto;
+class GDataDirectory;
class GDataEntry;
-class GDataEntryProto;
class GDataFile;
-class GDataDirectory;
class ResourceMetadataDB;
-typedef std::vector<GDataEntryProto> GDataEntryProtoVector;
+typedef std::vector<DriveEntryProto> DriveEntryProtoVector;
// File type on the gdata file system can be either a regular file or
// a hosted document.
@@ -82,22 +82,22 @@ typedef base::Callback<void(GDataFileError error,
// Used to get entry info from the file system.
// If |error| is not GDATA_FILE_OK, |entry_info| is set to NULL.
typedef base::Callback<void(GDataFileError error,
- scoped_ptr<GDataEntryProto> entry_proto)>
+ scoped_ptr<DriveEntryProto> entry_proto)>
GetEntryInfoCallback;
typedef base::Callback<void(GDataFileError error,
- scoped_ptr<GDataEntryProtoVector> entries)>
+ scoped_ptr<DriveEntryProtoVector> entries)>
ReadDirectoryCallback;
// Used to get entry info from the file system, with the Drive file path.
// If |error| is not GDATA_FILE_OK, |entry_proto| is set to NULL.
//
-// |drive_file_path| parameter is provided as GDataEntryProto does not contain
+// |drive_file_path| parameter is provided as DriveEntryProto does not contain
// the Drive file path (i.e. only contains the base name without parent
// directory names).
typedef base::Callback<void(GDataFileError error,
const FilePath& drive_file_path,
- scoped_ptr<GDataEntryProto> entry_proto)>
+ scoped_ptr<DriveEntryProto> entry_proto)>
GetEntryInfoWithFilePathCallback;
// This is a part of EntryInfoPairResult.
@@ -107,7 +107,7 @@ struct EntryInfoResult {
FilePath path;
GDataFileError error;
- scoped_ptr<GDataEntryProto> proto;
+ scoped_ptr<DriveEntryProto> proto;
};
// The result of GetEntryInfoPairCallback(). Used to get a pair of entries
@@ -170,7 +170,7 @@ class GDataDirectoryService {
// Add |new entry| to |directory| and invoke the callback asynchronously.
// |callback| may not be null.
- // TODO(achuith,satorux): Use GDataEntryProto instead for new_entry.
+ // TODO(achuith,satorux): Use DriveEntryProto instead for new_entry.
// crbug.com/142048
void AddEntryToDirectory(GDataDirectory* directory,
GDataEntry* new_entry,
@@ -284,7 +284,7 @@ class GDataDirectoryService {
const FilePath& second_path,
const GetEntryInfoPairCallback& callback,
GDataFileError error,
- scoped_ptr<GDataEntryProto> entry_proto);
+ scoped_ptr<DriveEntryProto> entry_proto);
// Continues with GetIntroInfoPairByPaths after the second GDataEntry has been
// asynchronously fetched.
@@ -293,7 +293,7 @@ class GDataDirectoryService {
const GetEntryInfoPairCallback& callback,
scoped_ptr<EntryInfoPairResult> result,
GDataFileError error,
- scoped_ptr<GDataEntryProto> entry_proto);
+ scoped_ptr<DriveEntryProto> entry_proto);
// These internal functions need friend access to private GDataDirectory
// methods.

Powered by Google App Engine
This is Rietveld 408576698