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