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

Side by Side Diff: google_apis/drive/drive_api_error_codes.h

Issue 1053623004: Drive: Add multipart related utility methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « google_apis/drive/base_requests.cc ('k') | google_apis/drive/drive_api_error_codes.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GOOGLE_APIS_DRIVE_DRIVE_API_ERROR_CODES_H_ 5 #ifndef GOOGLE_APIS_DRIVE_DRIVE_API_ERROR_CODES_H_
6 #define GOOGLE_APIS_DRIVE_DRIVE_API_ERROR_CODES_H_ 6 #define GOOGLE_APIS_DRIVE_DRIVE_API_ERROR_CODES_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace google_apis { 10 namespace google_apis {
(...skipping 23 matching lines...) Expand all
34 DRIVE_CANCELLED = -102, 34 DRIVE_CANCELLED = -102,
35 DRIVE_OTHER_ERROR = -103, 35 DRIVE_OTHER_ERROR = -103,
36 DRIVE_NO_CONNECTION = -104, 36 DRIVE_NO_CONNECTION = -104,
37 DRIVE_NOT_READY = -105, 37 DRIVE_NOT_READY = -105,
38 DRIVE_NO_SPACE = -106, 38 DRIVE_NO_SPACE = -106,
39 }; 39 };
40 40
41 // Returns a string representation of DriveApiErrorCode. 41 // Returns a string representation of DriveApiErrorCode.
42 std::string DriveApiErrorCodeToString(DriveApiErrorCode error); 42 std::string DriveApiErrorCodeToString(DriveApiErrorCode error);
43 43
44 // Checks if the error code represents success.
45 bool IsSuccessfulDriveApiErrorCode(DriveApiErrorCode error);
46
44 } // namespace google_apis 47 } // namespace google_apis
45 48
46 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_ERROR_CODES_H_ 49 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_ERROR_CODES_H_
OLDNEW
« no previous file with comments | « google_apis/drive/base_requests.cc ('k') | google_apis/drive/drive_api_error_codes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698