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

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

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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/syncable/base_node.h ('k') | components/sync/syncable/mutable_entry.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ 5 #ifndef COMPONENTS_SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_
6 #define COMPONENTS_SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ 6 #define COMPONENTS_SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 18 matching lines...) Expand all
29 namespace sync_pb { 29 namespace sync_pb {
30 class EntitySpecifics; 30 class EntitySpecifics;
31 } 31 }
32 32
33 namespace syncer { 33 namespace syncer {
34 namespace syncable { 34 namespace syncable {
35 35
36 extern const int32_t kCurrentDBVersion; 36 extern const int32_t kCurrentDBVersion;
37 extern const int32_t kCurrentPageSizeKB; 37 extern const int32_t kCurrentPageSizeKB;
38 38
39 struct ColumnSpec;
40
41 // Interface that provides persistence for a syncable::Directory object. You can 39 // Interface that provides persistence for a syncable::Directory object. You can
42 // load all the persisted data to prime a syncable::Directory on startup by 40 // load all the persisted data to prime a syncable::Directory on startup by
43 // invoking Load. The only other thing you (or more correctly, a Directory) can 41 // invoking Load. The only other thing you (or more correctly, a Directory) can
44 // do here is save any changes that have occurred since calling Load, which can 42 // do here is save any changes that have occurred since calling Load, which can
45 // be done periodically as often as desired. 43 // be done periodically as often as desired.
46 // 44 //
47 // The DirectoryBackingStore will own an sqlite lock on its database for most of 45 // The DirectoryBackingStore will own an sqlite lock on its database for most of
48 // its lifetime. You must not have two DirectoryBackingStore objects accessing 46 // its lifetime. You must not have two DirectoryBackingStore objects accessing
49 // the database simultaneously. Because the lock exists at the database level, 47 // the database simultaneously. Because the lock exists at the database level,
50 // not even two separate browser instances would be able to acquire it 48 // not even two separate browser instances would be able to acquire it
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 // sql::Connection is destroyed/recreated. 267 // sql::Connection is destroyed/recreated.
270 base::Closure catastrophic_error_handler_; 268 base::Closure catastrophic_error_handler_;
271 269
272 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore); 270 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore);
273 }; 271 };
274 272
275 } // namespace syncable 273 } // namespace syncable
276 } // namespace syncer 274 } // namespace syncer
277 275
278 #endif // COMPONENTS_SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ 276 #endif // COMPONENTS_SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_
OLDNEW
« no previous file with comments | « components/sync/syncable/base_node.h ('k') | components/sync/syncable/mutable_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698