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

Side by Side Diff: components/drive/file_errors.h

Issue 1246753003: Move a subset of chrome/browser/chromeos/drive into components/drive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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 CHROME_BROWSER_CHROMEOS_DRIVE_FILE_ERRORS_H_ 5 #ifndef COMPONENTS_DRIVE_FILE_ERRORS_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_ERRORS_H_ 6 #define COMPONENTS_DRIVE_FILE_ERRORS_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "google_apis/drive/drive_api_error_codes.h" 10 #include "google_apis/drive/drive_api_error_codes.h"
11 11
12 namespace drive { 12 namespace drive {
13 13
14 enum FileError { 14 enum FileError {
15 FILE_ERROR_OK = 0, 15 FILE_ERROR_OK = 0,
16 FILE_ERROR_FAILED = -1, 16 FILE_ERROR_FAILED = -1,
(...skipping 23 matching lines...) Expand all
40 std::string FileErrorToString(FileError error); 40 std::string FileErrorToString(FileError error);
41 41
42 // Returns a base::File::Error that corresponds to the FileError provided. 42 // Returns a base::File::Error that corresponds to the FileError provided.
43 base::File::Error FileErrorToBaseFileError(FileError error); 43 base::File::Error FileErrorToBaseFileError(FileError error);
44 44
45 // Converts GData error code into Drive file error code. 45 // Converts GData error code into Drive file error code.
46 FileError GDataToFileError(google_apis::DriveApiErrorCode status); 46 FileError GDataToFileError(google_apis::DriveApiErrorCode status);
47 47
48 } // namespace drive 48 } // namespace drive
49 49
50 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_ERRORS_H_ 50 #endif // COMPONENTS_DRIVE_FILE_ERRORS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698