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

Side by Side Diff: chrome/browser/chromeos/drive/file_errors.h

Issue 391343002: Keep sync tasks alive as long as it's not finished (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 CHROME_BROWSER_CHROMEOS_DRIVE_FILE_ERRORS_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_ERRORS_H_ 6 #define CHROME_BROWSER_CHROMEOS_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/gdata_errorcode.h" 10 #include "google_apis/drive/gdata_errorcode.h"
(...skipping 13 matching lines...) Expand all
24 FILE_ERROR_NOT_A_DIRECTORY = -9, 24 FILE_ERROR_NOT_A_DIRECTORY = -9,
25 FILE_ERROR_INVALID_OPERATION = -10, 25 FILE_ERROR_INVALID_OPERATION = -10,
26 FILE_ERROR_SECURITY = -11, 26 FILE_ERROR_SECURITY = -11,
27 FILE_ERROR_ABORT = -12, 27 FILE_ERROR_ABORT = -12,
28 FILE_ERROR_NOT_A_FILE = -13, 28 FILE_ERROR_NOT_A_FILE = -13,
29 FILE_ERROR_NOT_EMPTY = -14, 29 FILE_ERROR_NOT_EMPTY = -14,
30 FILE_ERROR_INVALID_URL = -15, 30 FILE_ERROR_INVALID_URL = -15,
31 FILE_ERROR_NO_CONNECTION = -16, 31 FILE_ERROR_NO_CONNECTION = -16,
32 FILE_ERROR_NO_LOCAL_SPACE = -17, 32 FILE_ERROR_NO_LOCAL_SPACE = -17,
33 FILE_ERROR_SERVICE_UNAVAILABLE = -18, 33 FILE_ERROR_SERVICE_UNAVAILABLE = -18,
34 FILE_ERROR_PARENT_NEEDS_TO_BE_SYNCED = -19,
34 }; 35 };
35 36
36 // Used as callbacks for file operations. 37 // Used as callbacks for file operations.
37 typedef base::Callback<void(FileError error)> FileOperationCallback; 38 typedef base::Callback<void(FileError error)> FileOperationCallback;
38 39
39 // Returns a string representation of FileError. 40 // Returns a string representation of FileError.
40 std::string FileErrorToString(FileError error); 41 std::string FileErrorToString(FileError error);
41 42
42 // Returns a base::File::Error that corresponds to the FileError provided. 43 // Returns a base::File::Error that corresponds to the FileError provided.
43 base::File::Error FileErrorToBaseFileError(FileError error); 44 base::File::Error FileErrorToBaseFileError(FileError error);
44 45
45 // Converts GData error code into Drive file error code. 46 // Converts GData error code into Drive file error code.
46 FileError GDataToFileError(google_apis::GDataErrorCode status); 47 FileError GDataToFileError(google_apis::GDataErrorCode status);
47 48
48 } // namespace drive 49 } // namespace drive
49 50
50 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_ERRORS_H_ 51 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_ERRORS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/file_errors.cc » ('j') | chrome/browser/chromeos/drive/sync_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698