| Index: chrome/browser/chromeos/gdata/gdata_file_system.h
|
| ===================================================================
|
| --- chrome/browser/chromeos/gdata/gdata_file_system.h (revision 127341)
|
| +++ chrome/browser/chromeos/gdata/gdata_file_system.h (working copy)
|
| @@ -19,6 +19,7 @@
|
| #include "base/platform_file.h"
|
| #include "base/synchronization/lock.h"
|
| #include "chrome/browser/chromeos/gdata/gdata_files.h"
|
| +#include "chrome/browser/chromeos/gdata/gdata_operation_registry.h"
|
| #include "chrome/browser/chromeos/gdata/gdata_params.h"
|
| #include "chrome/browser/chromeos/gdata/gdata_parser.h"
|
| #include "chrome/browser/chromeos/gdata/gdata_uploader.h"
|
| @@ -233,6 +234,22 @@
|
| void GetFromCacheForPath(const FilePath& gdata_file_path,
|
| const GetFromCacheCallback& callback);
|
|
|
| + // Gets the cache state of file corresponding to |resource_id| and |md5| if it
|
| + // exists on disk.
|
| + // Initializes cache if it has not been initialized.
|
| + // Upon completion, |callback| is invoked on the thread where this method was
|
| + // called with the cache state if file exists in cache or CACHE_STATE_NONE
|
| + // otherwise.
|
| + void GetCacheState(const std::string& resource_id,
|
| + const std::string& md5,
|
| + const GetCacheStateCallback& callback);
|
| + // Obtains the list of currently active operations.
|
| + std::vector<GDataOperationRegistry::ProgressStatus> GetProgressStatusList();
|
| + // Add operation observer.
|
| + void AddOperationObserver(GDataOperationRegistry::Observer* observer);
|
| + // Remove operation observer.
|
| + void RemoveOperationObserver(GDataOperationRegistry::Observer* observer);
|
| +
|
| // Finds file object by |file_path| and returns its |file_info|.
|
| // Returns true if file was found.
|
| bool GetFileInfoFromPath(const FilePath& gdata_file_path,
|
|
|