OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_NOTIFICATION_OBSERVER_H_ | |
6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_NOTIFICATION_OBSERVER_H_ | |
7 | |
8 #include "base/basictypes.h" | |
tfarina
2013/04/09 13:30:13
remove this if you remove the macro below.
calvinlo
2013/04/10 04:05:42
Done.
| |
9 | |
10 namespace google_apis { | |
11 | |
12 // Interface for classes which need to know when to check Google Drive for | |
13 // updates. | |
14 class DriveNotificationObserver { | |
15 public: | |
16 DriveNotificationObserver() {} | |
tfarina
2013/04/09 13:30:13
no constructor.
you can't instantiate this class
calvinlo
2013/04/10 04:05:42
Done.
| |
17 virtual ~DriveNotificationObserver() {} | |
tfarina
2013/04/09 13:30:13
can you make this protected?
calvinlo
2013/04/10 04:05:42
Done.
| |
18 | |
19 // Called when an observer should check Google Drive for updates. | |
20 virtual void CheckForUpdates() = 0; | |
21 | |
22 private: | |
23 DISALLOW_COPY_AND_ASSIGN(DriveNotificationObserver); | |
tfarina
2013/04/09 13:30:13
nor this.
because you have a pure abstract interf
calvinlo
2013/04/10 04:05:42
Done.
| |
24 }; | |
25 | |
26 } // namespace google_apis | |
27 | |
28 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_NOTIFICATION_OBSERVER_H_ | |
OLD | NEW |