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

Side by Side Diff: chrome/browser/sync_file_system/drive_file_sync_util.h

Issue 15806012: Move webkit/fileapi/syncable/* code to webkit/browser/fileapi (final!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_UTIL_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_UTIL_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_UTIL_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_UTIL_H_
7 7
8 #include "chrome/browser/google_apis/gdata_errorcode.h" 8 #include "chrome/browser/google_apis/gdata_errorcode.h"
9 #include "webkit/fileapi/syncable/sync_status_code.h" 9 #include "webkit/browser/fileapi/syncable/sync_status_code.h"
10 10
11 namespace sync_file_system { 11 namespace sync_file_system {
12 12
13 // Translates GDataErrorCode to SyncStatusCode. 13 // Translates GDataErrorCode to SyncStatusCode.
14 SyncStatusCode GDataErrorCodeToSyncStatusCode( 14 SyncStatusCode GDataErrorCodeToSyncStatusCode(
15 google_apis::GDataErrorCode error); 15 google_apis::GDataErrorCode error);
16 16
17 // Enables or disabled Drive API in Sync FileSystem API. 17 // Enables or disabled Drive API in Sync FileSystem API.
18 // TODO(nhiroki): This method should go away when we completely migrate to 18 // TODO(nhiroki): This method should go away when we completely migrate to
19 // DriveAPI. (http://crbug.com/234557) 19 // DriveAPI. (http://crbug.com/234557)
20 void SetEnableDriveAPI(bool flag); 20 void SetEnableDriveAPI(bool flag);
21 21
22 // Returns true if we enable Drive API in Sync FileSystem API. 22 // Returns true if we enable Drive API in Sync FileSystem API.
23 // It is disabled by default but can be overridden by a command-line switch 23 // It is disabled by default but can be overridden by a command-line switch
24 // (--enable-drive-api-for-syncfs) or by calling 24 // (--enable-drive-api-for-syncfs) or by calling
25 // SetEnableDriveAPI(). 25 // SetEnableDriveAPI().
26 // TODO(nhiroki): This method should go away when we completely migrate to 26 // TODO(nhiroki): This method should go away when we completely migrate to
27 // DriveAPI. (http://crbug.com/234557) 27 // DriveAPI. (http://crbug.com/234557)
28 bool IsDriveAPIEnabled(); 28 bool IsDriveAPIEnabled();
29 29
30 } // namespace sync_file_system 30 } // namespace sync_file_system
31 31
32 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_UTIL_H_ 32 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698