| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_SYNC_UTIL_EXTENSIONS_ACTIVITY_MONITOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_UTIL_EXTENSIONS_ACTIVITY_MONITOR_H_ |
| 6 #define CHROME_BROWSER_SYNC_UTIL_EXTENSIONS_ACTIVITY_MONITOR_H_ | 6 #define CHROME_BROWSER_SYNC_UTIL_EXTENSIONS_ACTIVITY_MONITOR_H_ |
| 7 | 7 |
| 8 #include <map> | |
| 9 | |
| 10 #include "base/lock.h" | 8 #include "base/lock.h" |
| 11 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 12 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| 13 #include "chrome/common/notification_observer.h" | 11 #include "chrome/common/notification_observer.h" |
| 14 #include "chrome/common/notification_registrar.h" | 12 #include "chrome/common/notification_registrar.h" |
| 15 | 13 |
| 16 namespace browser_sync { | 14 namespace browser_sync { |
| 17 | 15 |
| 18 // A class to monitor usage of extensions APIs to send to sync servers, with | 16 // A class to monitor usage of extensions APIs to send to sync servers, with |
| 19 // the ability to purge data once sync servers have acknowledged it (successful | 17 // the ability to purge data once sync servers have acknowledged it (successful |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 Records records_; | 62 Records records_; |
| 65 mutable Lock records_lock_; | 63 mutable Lock records_lock_; |
| 66 | 64 |
| 67 // Used only from UI loop. | 65 // Used only from UI loop. |
| 68 NotificationRegistrar registrar_; | 66 NotificationRegistrar registrar_; |
| 69 }; | 67 }; |
| 70 | 68 |
| 71 } // namespace browser_sync | 69 } // namespace browser_sync |
| 72 | 70 |
| 73 #endif // CHROME_BROWSER_SYNC_UTIL_EXTENSIONS_ACTIVITY_MONITOR_H_ | 71 #endif // CHROME_BROWSER_SYNC_UTIL_EXTENSIONS_ACTIVITY_MONITOR_H_ |
| OLD | NEW |