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

Side by Side Diff: chrome/browser/sync/util/extensions_activity_monitor.h

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/lock.h"
12 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/synchronization/lock.h"
13 #include "chrome/common/notification_observer.h" 13 #include "chrome/common/notification_observer.h"
14 #include "chrome/common/notification_registrar.h" 14 #include "chrome/common/notification_registrar.h"
15 15
16 namespace browser_sync { 16 namespace browser_sync {
17 17
18 // A class to monitor usage of extensions APIs to send to sync servers, with 18 // 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 19 // the ability to purge data once sync servers have acknowledged it (successful
20 // commit response). 20 // commit response).
21 // 21 //
22 // This can be used from any thread (it is a 'monitor' in the synchronization 22 // This can be used from any thread (it is a 'monitor' in the synchronization
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Add |records| piece-wise (by extension id) to the set of active records. 55 // Add |records| piece-wise (by extension id) to the set of active records.
56 // This is done mutually exclusively w.r.t the methods of this class. 56 // This is done mutually exclusively w.r.t the methods of this class.
57 void PutRecords(const Records& records); 57 void PutRecords(const Records& records);
58 58
59 // NotificationObserver implementation. Called on |ui_loop_|. 59 // NotificationObserver implementation. Called on |ui_loop_|.
60 virtual void Observe(NotificationType type, 60 virtual void Observe(NotificationType type,
61 const NotificationSource& source, 61 const NotificationSource& source,
62 const NotificationDetails& details); 62 const NotificationDetails& details);
63 private: 63 private:
64 Records records_; 64 Records records_;
65 mutable Lock records_lock_; 65 mutable base::Lock records_lock_;
66 66
67 // Used only from UI loop. 67 // Used only from UI loop.
68 NotificationRegistrar registrar_; 68 NotificationRegistrar registrar_;
69 }; 69 };
70 70
71 } // namespace browser_sync 71 } // namespace browser_sync
72 72
73 #endif // CHROME_BROWSER_SYNC_UTIL_EXTENSIONS_ACTIVITY_MONITOR_H_ 73 #endif // CHROME_BROWSER_SYNC_UTIL_EXTENSIONS_ACTIVITY_MONITOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/util/channel.h ('k') | chrome/browser/sync/util/extensions_activity_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698