OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GLUE_CHROME_EXTENSIONS_ACTIVITY_MONITOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_CHROME_EXTENSIONS_ACTIVITY_MONITOR_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_CHROME_EXTENSIONS_ACTIVITY_MONITOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_CHROME_EXTENSIONS_ACTIVITY_MONITOR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
11 #include "chrome/browser/sync/util/extensions_activity_monitor.h" | |
12 #include "content/public/browser/notification_observer.h" | 11 #include "content/public/browser/notification_observer.h" |
13 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
| 13 #include "sync/util/extensions_activity_monitor.h" |
14 | 14 |
15 namespace browser_sync { | 15 namespace browser_sync { |
16 | 16 |
17 // Chrome-specific implementation of ExtensionsActivityMonitor. | 17 // Chrome-specific implementation of ExtensionsActivityMonitor. |
18 // | 18 // |
19 // As per the requirements of ExtensionsActivityMonitor, all | 19 // As per the requirements of ExtensionsActivityMonitor, all |
20 // overridden methods are thread-safe, although this class must be | 20 // overridden methods are thread-safe, although this class must be |
21 // created and destroyed on the UI thread. | 21 // created and destroyed on the UI thread. |
22 class ChromeExtensionsActivityMonitor | 22 class ChromeExtensionsActivityMonitor |
23 : public ExtensionsActivityMonitor, content::NotificationObserver { | 23 : public ExtensionsActivityMonitor, content::NotificationObserver { |
(...skipping 14 matching lines...) Expand all Loading... |
38 Records records_; | 38 Records records_; |
39 mutable base::Lock records_lock_; | 39 mutable base::Lock records_lock_; |
40 | 40 |
41 // Used only on UI loop. | 41 // Used only on UI loop. |
42 content::NotificationRegistrar registrar_; | 42 content::NotificationRegistrar registrar_; |
43 }; | 43 }; |
44 | 44 |
45 } // namespace browser_sync | 45 } // namespace browser_sync |
46 | 46 |
47 #endif // CHROME_BROWSER_SYNC_GLUE_CHROME_EXTENSIONS_ACTIVITY_MONITOR_H_ | 47 #endif // CHROME_BROWSER_SYNC_GLUE_CHROME_EXTENSIONS_ACTIVITY_MONITOR_H_ |
OLD | NEW |