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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system.h

Issue 9720020: [COPY] - Implemented API for tracking ongoing file transfers from file manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata.cc ('k') | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata.cc ('k') | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698