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

Unified Diff: chrome/browser/google_apis/drive_notification_observer.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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_file_sync_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/drive_notification_observer.h
diff --git a/chrome/browser/google_apis/drive_notification_observer.h b/chrome/browser/google_apis/drive_notification_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..0d40c7fd2de5090c2b703609caec213b81ee4cfe
--- /dev/null
+++ b/chrome/browser/google_apis/drive_notification_observer.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_NOTIFICATION_OBSERVER_H_
+#define CHROME_BROWSER_GOOGLE_APIS_DRIVE_NOTIFICATION_OBSERVER_H_
+
+namespace google_apis {
+
+// Interface for classes which need to know when to check Google Drive for
+// updates.
+class DriveNotificationObserver {
+ public:
+ // Called when an observer should check Google Drive for updates.
+ virtual void CheckForUpdates() = 0;
+
+ protected:
+ virtual ~DriveNotificationObserver() {}
+};
+
+} // namespace google_apis
+
+#endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_NOTIFICATION_OBSERVER_H_
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_file_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698