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

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

Issue 10795018: [Sync] Remove unneeded 'using syncer::' lines and 'syncer::' scopings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiix 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
« no previous file with comments | « sync/syncable/directory.cc ('k') | sync/syncable/directory_backing_store.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 (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_DIRECTORY_BACKING_STORE_H_ 5 #ifndef SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_
6 #define SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ 6 #define SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Close save_dbhandle_. Broken out for testing. 105 // Close save_dbhandle_. Broken out for testing.
106 void EndSave(); 106 void EndSave();
107 107
108 // Removes each entry whose metahandle is in |handles| from the database. 108 // Removes each entry whose metahandle is in |handles| from the database.
109 // Does synchronous I/O. Returns false on error. 109 // Does synchronous I/O. Returns false on error.
110 bool DeleteEntries(const MetahandleSet& handles); 110 bool DeleteEntries(const MetahandleSet& handles);
111 111
112 // Drop all tables in preparation for reinitialization. 112 // Drop all tables in preparation for reinitialization.
113 void DropAllTables(); 113 void DropAllTables();
114 114
115 // Serialization helpers for syncer::ModelType. These convert between 115 // Serialization helpers for ModelType. These convert between
116 // the ModelType enum and the values we persist in the database to identify 116 // the ModelType enum and the values we persist in the database to identify
117 // a model. We persist a default instance of the specifics protobuf as the 117 // a model. We persist a default instance of the specifics protobuf as the
118 // ID, rather than the enum value. 118 // ID, rather than the enum value.
119 static ModelType ModelIdToModelTypeEnum(const void* data, int length); 119 static ModelType ModelIdToModelTypeEnum(const void* data, int length);
120 static std::string ModelTypeEnumToModelId(ModelType model_type); 120 static std::string ModelTypeEnumToModelId(ModelType model_type);
121 121
122 static std::string GenerateCacheGUID(); 122 static std::string GenerateCacheGUID();
123 123
124 // Runs an integrity check on the current database. If the 124 // Runs an integrity check on the current database. If the
125 // integrity check fails, false is returned and error is populated 125 // integrity check fails, false is returned and error is populated
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // discarded. 159 // discarded.
160 bool needs_column_refresh_; 160 bool needs_column_refresh_;
161 161
162 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore); 162 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore);
163 }; 163 };
164 164
165 } // namespace syncable 165 } // namespace syncable
166 } // namespace syncer 166 } // namespace syncer
167 167
168 #endif // SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ 168 #endif // SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_
OLDNEW
« no previous file with comments | « sync/syncable/directory.cc ('k') | sync/syncable/directory_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698