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

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

Issue 13940004: Added new DriveNotificationObserver interface which all observers of Google Drive invalidations sho… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tfarina review #1 Created 7 years, 8 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_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 5dc6928a724197193c5023cc68bbefdd9d1f6239..f272333d5385602893d0eb7df421b876cbee131d 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 "base/timer.h"
+#include "chrome/browser/google_apis/drive_notification_observer.h"
#include "chrome/browser/sync_file_system/drive_file_sync_client_interface.h"
#include "chrome/browser/sync_file_system/drive_metadata_store.h"
#include "chrome/browser/sync_file_system/local_change_processor.h"
@@ -47,7 +48,8 @@ class DriveFileSyncService
public LocalChangeProcessor,
public DriveFileSyncClientObserver,
public base::NonThreadSafe,
- public syncer::InvalidationHandler {
+ public syncer::InvalidationHandler,
+ public google_apis::DriveNotificationObserver {
public:
static const char kServiceName[];
static ConflictResolutionPolicy kDefaultPolicy;
@@ -120,6 +122,9 @@ class DriveFileSyncService
virtual void OnIncomingInvalidation(
const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE;
+ // google_apis::DriveNotificationObserver implementation.
+ virtual void CheckForUpdates() OVERRIDE;
+
private:
friend class DriveFileSyncServiceMockTest;
friend class DriveFileSyncServiceSyncTest;
« no previous file with comments | « chrome/browser/google_apis/drive_notification_observer.h ('k') | chrome/browser/sync_file_system/drive_file_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698