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

Side by Side Diff: chrome/browser/sync/syncable/syncable.h

Issue 8573011: Event tracing for sync events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use simpler TRACE_EVENT macros Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SYNCABLE_SYNCABLE_H_ 5 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_H_
6 #define CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_H_ 6 #define CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <bitset> 10 #include <bitset>
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 Directory* directory); 1204 Directory* directory);
1205 1205
1206 void Lock(); 1206 void Lock();
1207 void Unlock(); 1207 void Unlock();
1208 1208
1209 const tracked_objects::Location from_here_; 1209 const tracked_objects::Location from_here_;
1210 const char* const name_; 1210 const char* const name_;
1211 WriterTag writer_; 1211 WriterTag writer_;
1212 Directory* const directory_; 1212 Directory* const directory_;
1213 Directory::Kernel* const dirkernel_; // for brevity 1213 Directory::Kernel* const dirkernel_; // for brevity
1214 base::TimeTicks time_acquired_;
1215 1214
1216 private: 1215 private:
1217 DISALLOW_COPY_AND_ASSIGN(BaseTransaction); 1216 DISALLOW_COPY_AND_ASSIGN(BaseTransaction);
1218 }; 1217 };
1219 1218
1220 // Locks db in constructor, unlocks in destructor. 1219 // Locks db in constructor, unlocks in destructor.
1221 class ReadTransaction : public BaseTransaction { 1220 class ReadTransaction : public BaseTransaction {
1222 public: 1221 public:
1223 ReadTransaction(const tracked_objects::Location& from_here, 1222 ReadTransaction(const tracked_objects::Location& from_here,
1224 Directory* directory); 1223 Directory* directory);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 bool IsLegalNewParent(BaseTransaction* trans, const Id& id, const Id& parentid); 1270 bool IsLegalNewParent(BaseTransaction* trans, const Id& id, const Id& parentid);
1272 1271
1273 // This function sets only the flags needed to get this entry to sync. 1272 // This function sets only the flags needed to get this entry to sync.
1274 void MarkForSyncing(syncable::MutableEntry* e); 1273 void MarkForSyncing(syncable::MutableEntry* e);
1275 1274
1276 } // namespace syncable 1275 } // namespace syncable
1277 1276
1278 std::ostream& operator <<(std::ostream&, const syncable::Blob&); 1277 std::ostream& operator <<(std::ostream&, const syncable::Blob&);
1279 1278
1280 #endif // CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_H_ 1279 #endif // CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698