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

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

Issue 11421125: Implement polling part of DriveFileSyncService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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 | « no previous file | chrome/browser/sync_file_system/drive_file_sync_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_file_sync_client.h
diff --git a/chrome/browser/sync_file_system/drive_file_sync_client.h b/chrome/browser/sync_file_system/drive_file_sync_client.h
index 60d2ce49f958de8fdc006b7551263bda818e76e0..f52fc705633842fa024ee5379afba4805fbc1866 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_client.h
+++ b/chrome/browser/sync_file_system/drive_file_sync_client.h
@@ -16,6 +16,7 @@
#include "chrome/browser/google_apis/drive_upload_error.h"
#include "chrome/browser/google_apis/gdata_errorcode.h"
#include "chrome/browser/google_apis/gdata_wapi_parser.h"
+#include "chrome/browser/google_apis/gdata_wapi_url_generator.h"
class GURL;
class Profile;
@@ -72,6 +73,7 @@ class DriveFileSyncClient : public google_apis::DriveServiceObserver,
static scoped_ptr<DriveFileSyncClient> CreateForTesting(
Profile* profile,
+ const GURL& base_url,
scoped_ptr<google_apis::DriveServiceInterface> drive_service,
scoped_ptr<google_apis::DriveUploaderInterface> drive_uploader);
@@ -168,6 +170,9 @@ class DriveFileSyncClient : public google_apis::DriveServiceObserver,
static std::string OriginToDirectoryTitle(const GURL& origin);
static GURL DirectoryTitleToOrigin(const std::string& title);
+ // Converts |resource_id| to corresponing resource link.
+ GURL ResourceIdToResourceLink(const std::string& resource_id) const;
+
// DriveServiceObserver overrides.
virtual void OnReadyToPerformOperations() OVERRIDE;
@@ -178,6 +183,7 @@ class DriveFileSyncClient : public google_apis::DriveServiceObserver,
// Constructor for test use.
DriveFileSyncClient(
Profile* profile,
+ const GURL& base_url,
scoped_ptr<google_apis::DriveServiceInterface> drive_service,
scoped_ptr<google_apis::DriveUploaderInterface> drive_uploader);
@@ -258,6 +264,7 @@ class DriveFileSyncClient : public google_apis::DriveServiceObserver,
scoped_ptr<google_apis::DriveServiceInterface> drive_service_;
scoped_ptr<google_apis::DriveUploaderInterface> drive_uploader_;
+ google_apis::GDataWapiUrlGenerator url_generator_;
ObserverList<DriveFileSyncClientObserver> observers_;
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_file_sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698