Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Side by Side Diff: chrome/browser/sync/glue/chrome_extensions_activity_monitor.h

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "content/public/browser/notification_observer.h" 11 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h" 12 #include "content/public/browser/notification_registrar.h"
13 #include "sync/util/extensions_activity_monitor.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 csync::ExtensionsActivityMonitor. 17 // Chrome-specific implementation of syncer::ExtensionsActivityMonitor.
18 // 18 //
19 // As per the requirements of csync::ExtensionsActivityMonitor, all 19 // As per the requirements of syncer::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 csync::ExtensionsActivityMonitor, 23 : public syncer::ExtensionsActivityMonitor,
24 public content::NotificationObserver { 24 public content::NotificationObserver {
25 public: 25 public:
26 ChromeExtensionsActivityMonitor(); 26 ChromeExtensionsActivityMonitor();
27 virtual ~ChromeExtensionsActivityMonitor(); 27 virtual ~ChromeExtensionsActivityMonitor();
28 28
29 // csync::ExtensionsActivityMonitor implementation. 29 // syncer::ExtensionsActivityMonitor implementation.
30 virtual void GetAndClearRecords(Records* buffer) OVERRIDE; 30 virtual void GetAndClearRecords(Records* buffer) OVERRIDE;
31 virtual void PutRecords(const Records& records) OVERRIDE; 31 virtual void PutRecords(const Records& records) OVERRIDE;
32 32
33 // content::NotificationObserver implementation. 33 // content::NotificationObserver implementation.
34 virtual void Observe(int type, 34 virtual void Observe(int type,
35 const content::NotificationSource& source, 35 const content::NotificationSource& source,
36 const content::NotificationDetails& details) OVERRIDE; 36 const content::NotificationDetails& details) OVERRIDE;
37 37
38 private: 38 private:
39 Records records_; 39 Records records_;
40 mutable base::Lock records_lock_; 40 mutable base::Lock records_lock_;
41 41
42 // Used only on UI loop. 42 // Used only on UI loop.
43 content::NotificationRegistrar registrar_; 43 content::NotificationRegistrar registrar_;
44 }; 44 };
45 45
46 } // namespace browser_sync 46 } // namespace browser_sync
47 47
48 #endif // CHROME_BROWSER_SYNC_GLUE_CHROME_EXTENSIONS_ACTIVITY_MONITOR_H_ 48 #endif // CHROME_BROWSER_SYNC_GLUE_CHROME_EXTENSIONS_ACTIVITY_MONITOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/chrome_encryptor.h ('k') | chrome/browser/sync/glue/chrome_extensions_activity_monitor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698