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

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

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/threading/non_thread_safe.h" 12 #include "base/threading/non_thread_safe.h"
13 #include "sql/connection.h" 13 #include "sql/connection.h"
14 #include "sql/statement.h" 14 #include "sql/statement.h"
15 #include "sync/internal_api/public/syncable/model_type.h" 15 #include "sync/internal_api/public/syncable/model_type.h"
16 #include "sync/syncable/dir_open_result.h" 16 #include "sync/syncable/dir_open_result.h"
17 #include "sync/syncable/directory.h" 17 #include "sync/syncable/directory.h"
18 #include "sync/syncable/metahandle_set.h" 18 #include "sync/syncable/metahandle_set.h"
19 19
20 namespace sync_pb { 20 namespace sync_pb {
21 class EntitySpecifics; 21 class EntitySpecifics;
22 } 22 }
23 23
24 namespace syncer {
24 namespace syncable { 25 namespace syncable {
25 26
26 struct ColumnSpec; 27 struct ColumnSpec;
27 typedef Directory::MetahandlesIndex MetahandlesIndex; 28 typedef Directory::MetahandlesIndex MetahandlesIndex;
28 29
29 // Interface that provides persistence for a syncable::Directory object. You can 30 // Interface that provides persistence for a syncable::Directory object. You can
30 // load all the persisted data to prime a syncable::Directory on startup by 31 // load all the persisted data to prime a syncable::Directory on startup by
31 // invoking Load. The only other thing you (or more correctly, a Directory) can 32 // invoking Load. The only other thing you (or more correctly, a Directory) can
32 // do here is save any changes that have occurred since calling Load, which can 33 // do here is save any changes that have occurred since calling Load, which can
33 // be done periodically as often as desired. 34 // be done periodically as often as desired.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 std::string dir_name_; 157 std::string dir_name_;
157 158
158 // Set to true if migration left some old columns around that need to be 159 // Set to true if migration left some old columns around that need to be
159 // discarded. 160 // discarded.
160 bool needs_column_refresh_; 161 bool needs_column_refresh_;
161 162
162 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore); 163 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore);
163 }; 164 };
164 165
165 } // namespace syncable 166 } // namespace syncable
167 } // namespace syncer
166 168
167 #endif // SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ 169 #endif // SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698