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

Side by Side Diff: components/sync/base/extensions_activity.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
« no previous file with comments | « components/sync/base/experiments.h ('k') | components/sync/base/extensions_activity.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 SYNC_UTIL_EXTENSIONS_ACTIVITY_H_ 5 #ifndef COMPONENTS_SYNC_BASE_EXTENSIONS_ACTIVITY_H_
6 #define SYNC_UTIL_EXTENSIONS_ACTIVITY_H_ 6 #define COMPONENTS_SYNC_BASE_EXTENSIONS_ACTIVITY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 12
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
15 #include "sync/base/sync_export.h" 15 #include "components/sync/base/sync_export.h"
16 16
17 namespace syncer { 17 namespace syncer {
18 18
19 // A storage to record usage of extensions APIs to send to sync 19 // A storage to record usage of extensions APIs to send to sync
20 // servers, with the ability to purge data once sync servers have 20 // servers, with the ability to purge data once sync servers have
21 // acknowledged it (successful commit response). 21 // acknowledged it (successful commit response).
22 class SYNC_EXPORT ExtensionsActivity 22 class SYNC_EXPORT ExtensionsActivity
23 : public base::RefCountedThreadSafe<ExtensionsActivity> { 23 : public base::RefCountedThreadSafe<ExtensionsActivity> {
24 public: 24 public:
25 // A data record of activity performed by extension |extension_id|. 25 // A data record of activity performed by extension |extension_id|.
(...skipping 29 matching lines...) Expand all
55 private: 55 private:
56 friend class base::RefCountedThreadSafe<ExtensionsActivity>; 56 friend class base::RefCountedThreadSafe<ExtensionsActivity>;
57 ~ExtensionsActivity(); 57 ~ExtensionsActivity();
58 58
59 Records records_; 59 Records records_;
60 mutable base::Lock records_lock_; 60 mutable base::Lock records_lock_;
61 }; 61 };
62 62
63 } // namespace syncer 63 } // namespace syncer
64 64
65 #endif // SYNC_UTIL_EXTENSIONS_ACTIVITY_H_ 65 #endif // COMPONENTS_SYNC_BASE_EXTENSIONS_ACTIVITY_H_
OLDNEW
« no previous file with comments | « components/sync/base/experiments.h ('k') | components/sync/base/extensions_activity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698