Chromium Code Reviews| 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 COMPONENTS_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ | 5 #ifndef COMPONENTS_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ |
| 6 #define COMPONENTS_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ | 6 #define COMPONENTS_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| 11 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
| 12 #include "components/drive/drive_notification_observer.h" | 12 #include "components/drive/drive_notification_observer.h" |
| 13 #include "components/invalidation/public/invalidation_handler.h" | 13 #include "components/invalidation/public/invalidation_handler.h" |
| 14 #include "components/keyed_service/core/keyed_service.h" | 14 #include "components/keyed_service/core/keyed_service.h" |
| 15 | 15 |
| 16 namespace browser_sync { | |
| 16 class ProfileSyncService; | 17 class ProfileSyncService; |
| 18 } | |
|
skym
2016/09/22 17:25:59
Closing namespaces.
maxbogue
2016/09/22 19:41:15
Done.
| |
| 17 | 19 |
| 18 namespace invalidation { | 20 namespace invalidation { |
| 19 class InvalidationService; | 21 class InvalidationService; |
| 20 } | 22 } |
| 21 | 23 |
| 22 namespace drive { | 24 namespace drive { |
| 23 | 25 |
| 24 // Informs observers when they should check Google Drive for updates. | 26 // Informs observers when they should check Google Drive for updates. |
| 25 // Conditions under which updates should be searched: | 27 // Conditions under which updates should be searched: |
| 26 // 1. XMPP invalidation is received from Google Drive. | 28 // 1. XMPP invalidation is received from Google Drive. |
| (...skipping 63 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 | 92 // Note: This should remain the last member so it'll be destroyed and |
| 91 // invalidate its weak pointers before any other members are destroyed. | 93 // invalidate its weak pointers before any other members are destroyed. |
| 92 base::WeakPtrFactory<DriveNotificationManager> weak_ptr_factory_; | 94 base::WeakPtrFactory<DriveNotificationManager> weak_ptr_factory_; |
| 93 | 95 |
| 94 DISALLOW_COPY_AND_ASSIGN(DriveNotificationManager); | 96 DISALLOW_COPY_AND_ASSIGN(DriveNotificationManager); |
| 95 }; | 97 }; |
| 96 | 98 |
| 97 } // namespace drive | 99 } // namespace drive |
| 98 | 100 |
| 99 #endif // COMPONENTS_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ | 101 #endif // COMPONENTS_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ |
| OLD | NEW |