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

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

Issue 11414253: DriveFileSyncService listens to OnAuthenticated event to recover from unavailable state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 8 years, 1 month 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_file_sync_service.h
diff --git a/chrome/browser/sync_file_system/drive_file_sync_service.h b/chrome/browser/sync_file_system/drive_file_sync_service.h
index b1ceb2a691fade2e76fa64cda4ffa9a115c18b81..14a86dec4bc3b6f4902ac3b590919eff9e267fa5 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_service.h
+++ b/chrome/browser/sync_file_system/drive_file_sync_service.h
@@ -17,6 +17,7 @@
#include "base/observer_list.h"
#include "base/threading/non_thread_safe.h"
#include "chrome/browser/google_apis/drive_service_interface.h"
+#include "chrome/browser/sync_file_system/drive_file_sync_client.h"
#include "chrome/browser/sync_file_system/local_change_processor.h"
#include "chrome/browser/sync_file_system/remote_file_sync_service.h"
#include "webkit/fileapi/syncable/file_change.h"
@@ -32,7 +33,6 @@ class Location;
namespace sync_file_system {
-class DriveFileSyncClient;
class DriveMetadataStore;
// Maintains remote file changes.
@@ -40,6 +40,7 @@ class DriveMetadataStore;
class DriveFileSyncService
: public RemoteFileSyncService,
public LocalChangeProcessor,
+ public DriveFileSyncClientObserver,
public base::NonThreadSafe {
public:
static const char kServiceName[];
@@ -82,6 +83,9 @@ class DriveFileSyncService
const fileapi::FileSystemURL& url,
const fileapi::SyncStatusCallback& callback) OVERRIDE;
+ // DriveFileSyncClientObserver overrides.
+ virtual void OnAuthenticated() OVERRIDE;
+
private:
friend class DriveFileSyncServiceTest;
class TaskToken;

Powered by Google App Engine
This is Rietveld 408576698