| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ |
| 6 #define CHROME_BROWSER_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ | 6 #define CHROME_BROWSER_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| 11 #include "chrome/browser/drive/drive_notification_observer.h" | 11 #include "chrome/browser/drive/drive_notification_observer.h" |
| 12 #include "components/invalidation/invalidation_handler.h" |
| 12 #include "components/keyed_service/core/keyed_service.h" | 13 #include "components/keyed_service/core/keyed_service.h" |
| 13 #include "sync/notifier/invalidation_handler.h" | |
| 14 | 14 |
| 15 class ProfileSyncService; | 15 class ProfileSyncService; |
| 16 | 16 |
| 17 namespace invalidation { | 17 namespace invalidation { |
| 18 class InvalidationService; | 18 class InvalidationService; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace drive { | 21 namespace drive { |
| 22 | 22 |
| 23 // Informs observers when they should check Google Drive for updates. | 23 // Informs observers when they should check Google Drive for updates. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // Note: This should remain the last member so it'll be destroyed and | 90 // Note: This should remain the last member so it'll be destroyed and |
| 91 // invalidate its weak pointers before any other members are destroyed. | 91 // invalidate its weak pointers before any other members are destroyed. |
| 92 base::WeakPtrFactory<DriveNotificationManager> weak_ptr_factory_; | 92 base::WeakPtrFactory<DriveNotificationManager> weak_ptr_factory_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(DriveNotificationManager); | 94 DISALLOW_COPY_AND_ASSIGN(DriveNotificationManager); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace drive | 97 } // namespace drive |
| 98 | 98 |
| 99 #endif // CHROME_BROWSER_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ | 99 #endif // CHROME_BROWSER_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ |
| OLD | NEW |