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

Side by Side Diff: sync/syncable/mutable_entry.h

Issue 10795018: [Sync] Remove unneeded 'using syncer::' lines and 'syncer::' scopings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix indent 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 SYNC_SYNCABLE_MUTABLE_ENTRY_H_ 5 #ifndef SYNC_SYNCABLE_MUTABLE_ENTRY_H_
6 #define SYNC_SYNCABLE_MUTABLE_ENTRY_H_ 6 #define SYNC_SYNCABLE_MUTABLE_ENTRY_H_
7 7
8 #include "sync/syncable/entry.h" 8 #include "sync/syncable/entry.h"
9 #include "sync/syncable/metahandle_set.h" 9 #include "sync/syncable/metahandle_set.h"
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 bool Put(BitTemp field, bool value); 80 bool Put(BitTemp field, bool value);
81 81
82 protected: 82 protected:
83 syncable::MetahandleSet* GetDirtyIndexHelper(); 83 syncable::MetahandleSet* GetDirtyIndexHelper();
84 84
85 bool PutIsDel(bool value); 85 bool PutIsDel(bool value);
86 86
87 private: 87 private:
88 friend class Directory; 88 friend class Directory;
89 friend class WriteTransaction; 89 friend class WriteTransaction;
90 friend class syncer::WriteNode; 90 friend class WriteNode;
Nicolas Zea 2012/07/19 19:37:56 move one line up.
akalin 2012/07/19 20:57:23 moot, now that I added syncer:: back
91 91
92 // Don't allow creation on heap, except by sync API wrappers. 92 // Don't allow creation on heap, except by sync API wrappers.
93 void* operator new(size_t size) { return (::operator new)(size); } 93 void* operator new(size_t size) { return (::operator new)(size); }
94 94
95 bool PutUniqueClientTag(const std::string& value); 95 bool PutUniqueClientTag(const std::string& value);
96 96
97 // Adjusts the successor and predecessor entries so that they no longer 97 // Adjusts the successor and predecessor entries so that they no longer
98 // refer to this entry. 98 // refer to this entry.
99 bool UnlinkFromOrder(); 99 bool UnlinkFromOrder();
100 100
101 // Kind of redundant. We should reduce the number of pointers 101 // Kind of redundant. We should reduce the number of pointers
102 // floating around if at all possible. Could we store this in Directory? 102 // floating around if at all possible. Could we store this in Directory?
103 // Scope: Set on construction, never changed after that. 103 // Scope: Set on construction, never changed after that.
104 WriteTransaction* const write_transaction_; 104 WriteTransaction* const write_transaction_;
105 105
106 protected: 106 protected:
107 MutableEntry(); 107 MutableEntry();
108 108
109 DISALLOW_COPY_AND_ASSIGN(MutableEntry); 109 DISALLOW_COPY_AND_ASSIGN(MutableEntry);
110 }; 110 };
111 111
112 // This function sets only the flags needed to get this entry to sync. 112 // This function sets only the flags needed to get this entry to sync.
113 bool MarkForSyncing(syncable::MutableEntry* e); 113 bool MarkForSyncing(syncable::MutableEntry* e);
114 114
115 } // namespace syncable 115 } // namespace syncable
116 } // namespace syncer 116 } // namespace syncer
117 117
118 #endif // SYNC_SYNCABLE_MUTABLE_ENTRY_H_ 118 #endif // SYNC_SYNCABLE_MUTABLE_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698