| 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/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 9 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| 10 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
| 11 #include "components/drive/drive_notification_observer.h" | 12 #include "components/drive/drive_notification_observer.h" |
| 12 #include "components/invalidation/public/invalidation_handler.h" | 13 #include "components/invalidation/public/invalidation_handler.h" |
| 13 #include "components/keyed_service/core/keyed_service.h" | 14 #include "components/keyed_service/core/keyed_service.h" |
| 14 | 15 |
| 15 class ProfileSyncService; | 16 class ProfileSyncService; |
| 16 | 17 |
| 17 namespace invalidation { | 18 namespace invalidation { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // 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 |
| 90 // invalidate its weak pointers before any other members are destroyed. | 91 // invalidate its weak pointers before any other members are destroyed. |
| 91 base::WeakPtrFactory<DriveNotificationManager> weak_ptr_factory_; | 92 base::WeakPtrFactory<DriveNotificationManager> weak_ptr_factory_; |
| 92 | 93 |
| 93 DISALLOW_COPY_AND_ASSIGN(DriveNotificationManager); | 94 DISALLOW_COPY_AND_ASSIGN(DriveNotificationManager); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace drive | 97 } // namespace drive |
| 97 | 98 |
| 98 #endif // COMPONENTS_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ | 99 #endif // COMPONENTS_DRIVE_DRIVE_NOTIFICATION_MANAGER_H_ |
| OLD | NEW |