OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_NOTIFICATION_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_NOTIFICATION_OBSERVER_H_ |
6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_NOTIFICATION_OBSERVER_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_NOTIFICATION_OBSERVER_H_ |
7 | 7 |
8 namespace google_apis { | 8 namespace google_apis { |
9 | 9 |
10 // Interface for classes which need to know when to check Google Drive for | 10 // Interface for classes which need to know when to check Google Drive for |
11 // updates. | 11 // updates. |
12 class DriveNotificationObserver { | 12 class DriveNotificationObserver { |
13 public: | 13 public: |
14 // Called when an observer should check Google Drive for updates. | 14 // Called when a notification from Google Drive is received. |
15 virtual void CheckForUpdates() = 0; | 15 virtual void OnNotificationReceived() = 0; |
16 | 16 |
17 protected: | 17 protected: |
18 virtual ~DriveNotificationObserver() {} | 18 virtual ~DriveNotificationObserver() {} |
19 }; | 19 }; |
20 | 20 |
21 } // namespace google_apis | 21 } // namespace google_apis |
22 | 22 |
23 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_NOTIFICATION_OBSERVER_H_ | 23 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_NOTIFICATION_OBSERVER_H_ |
OLD | NEW |