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

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

Issue 10877006: Rename GDataErrorCode to DriveErrorCode, GDataFileError to DriveFileError (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/drive_errorcode.h
diff --git a/chrome/browser/chromeos/gdata/drive_errorcode.h b/chrome/browser/chromeos/gdata/drive_errorcode.h
new file mode 100644
index 0000000000000000000000000000000000000000..856ae216132c70cb5ca08b42d03216af70646e74
--- /dev/null
+++ b/chrome/browser/chromeos/gdata/drive_errorcode.h
@@ -0,0 +1,55 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_ERRORCODE_H_
+#define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_ERRORCODE_H_
+
+namespace gdata {
+
+// HTTP errors that can be returned by Drive service.
+enum DriveErrorCode {
+ HTTP_SUCCESS = 200,
+ HTTP_CREATED = 201,
+ HTTP_FOUND = 302,
+ HTTP_NOT_MODIFIED = 304,
+ HTTP_RESUME_INCOMPLETE = 308,
+ HTTP_BAD_REQUEST = 400,
+ HTTP_UNAUTHORIZED = 401,
+ HTTP_FORBIDDEN = 403,
+ HTTP_NOT_FOUND = 404,
+ HTTP_CONFLICT = 409,
+ HTTP_LENGTH_REQUIRED = 411,
+ HTTP_PRECONDITION = 412,
+ HTTP_INTERNAL_SERVER_ERROR = 500,
+ HTTP_SERVICE_UNAVAILABLE = 503,
+ DRIVE_PARSE_ERROR = -100,
+ DRIVE_FILE_ERROR = -101,
+ DRIVE_CANCELLED = -102,
+ DRIVE_OTHER_ERROR = -103,
+ DRIVE_NO_CONNECTION = -104,
+};
+
+enum DriveFileError {
+ DRIVE_FILE_OK = 0,
+ DRIVE_FILE_ERROR_FAILED = -1,
+ DRIVE_FILE_ERROR_IN_USE = -2,
+ DRIVE_FILE_ERROR_EXISTS = -3,
+ DRIVE_FILE_ERROR_NOT_FOUND = -4,
+ DRIVE_FILE_ERROR_ACCESS_DENIED = -5,
+ DRIVE_FILE_ERROR_TOO_MANY_OPENED = -6,
+ DRIVE_FILE_ERROR_NO_MEMORY = -7,
+ DRIVE_FILE_ERROR_NO_SPACE = -8,
+ DRIVE_FILE_ERROR_NOT_A_DIRECTORY = -9,
+ DRIVE_FILE_ERROR_INVALID_OPERATION = -10,
+ DRIVE_FILE_ERROR_SECURITY = -11,
+ DRIVE_FILE_ERROR_ABORT = -12,
+ DRIVE_FILE_ERROR_NOT_A_FILE = -13,
+ DRIVE_FILE_ERROR_NOT_EMPTY = -14,
+ DRIVE_FILE_ERROR_INVALID_URL = -15,
+ DRIVE_FILE_ERROR_NO_CONNECTION = -16,
+};
+
+} // namespace gdata
+
+#endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_ERRORCODE_H_

Powered by Google App Engine
This is Rietveld 408576698