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

Unified Diff: chrome/browser/sync_file_system/drive_metadata_store.h

Issue 15023022: Add to be fetched files instead of DriveMetadataStore.batch_sync_origins_ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tzik review, test revisions 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync_file_system/drive_metadata_store.h
diff --git a/chrome/browser/sync_file_system/drive_metadata_store.h b/chrome/browser/sync_file_system/drive_metadata_store.h
index 2cb0ba83db1c65aeb90f2c8689097e9a8d438489..f7b0c10d5767e208d116709a562a488a873283cd 100644
--- a/chrome/browser/sync_file_system/drive_metadata_store.h
+++ b/chrome/browser/sync_file_system/drive_metadata_store.h
@@ -73,6 +73,12 @@ class DriveMetadataStore
SyncStatusCode ReadEntry(const fileapi::FileSystemURL& url,
DriveMetadata* metadata) const;
+ // Marks |origin| as incremental sync and associates it with the directory
+ // identified by |resource_id|.
+ // |origin| must not already be an incremental sync origin.
+ void AddIncrementalSyncOrigin(const GURL& origin,
+ const std::string& resource_id);
+
// Returns true if |origin| is a batch sync origin, a incremental sync origin
// or a disabled origin.
bool IsKnownOrigin(const GURL& origin) const;
@@ -89,15 +95,6 @@ class DriveMetadataStore
// Returns true if |origin| is a disabled origin.
bool IsOriginDisabled(const GURL& origin) const;
- // Marks |origin| as a batch sync origin and associates it with the directory
- // identified by |resource_id|.
- // |origin| must not be a batch sync origin nor an incremental sync origin.
- void AddBatchSyncOrigin(const GURL& origin, const std::string& resource_id);
-
- // Marks |origin| as an incremental sync origin.
- // |origin| must be a batch sync origin.
- void MoveBatchSyncOriginToIncremental(const GURL& origin);
-
void EnableOrigin(const GURL& origin,
const SyncStatusCallback& callback);
@@ -158,6 +155,15 @@ class DriveMetadataStore
private:
friend class DriveMetadataStoreTest;
+ // Marks |origin| as a batch sync origin and associates it with the directory
+ // identified by |resource_id|.
+ // |origin| must not be a batch sync origin nor an incremental sync origin.
+ void AddBatchSyncOrigin(const GURL& origin, const std::string& resource_id);
+
+ // Marks |origin| as an incremental sync origin.
+ // |origin| must be a batch sync origin.
+ void MoveBatchSyncOriginToIncremental(const GURL& origin);
+
void UpdateDBStatus(SyncStatusCode status);
void UpdateDBStatusAndInvokeCallback(const SyncStatusCallback& callback,
SyncStatusCode status);

Powered by Google App Engine
This is Rietveld 408576698