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

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

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 #include "sync/syncable/directory_backing_store.h" 5 #include "sync/syncable/directory_backing_store.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <limits> 9 #include <limits>
10 10
(...skipping 11 matching lines...) Expand all
22 #include "sql/statement.h" 22 #include "sql/statement.h"
23 #include "sql/transaction.h" 23 #include "sql/transaction.h"
24 #include "sync/protocol/bookmark_specifics.pb.h" 24 #include "sync/protocol/bookmark_specifics.pb.h"
25 #include "sync/protocol/sync.pb.h" 25 #include "sync/protocol/sync.pb.h"
26 #include "sync/syncable/syncable-inl.h" 26 #include "sync/syncable/syncable-inl.h"
27 #include "sync/syncable/syncable_columns.h" 27 #include "sync/syncable/syncable_columns.h"
28 #include "sync/util/time.h" 28 #include "sync/util/time.h"
29 29
30 using std::string; 30 using std::string;
31 31
32 namespace syncer {
32 namespace syncable { 33 namespace syncable {
33 34
34 // This just has to be big enough to hold an UPDATE or INSERT statement that 35 // This just has to be big enough to hold an UPDATE or INSERT statement that
35 // modifies all the columns in the entry table. 36 // modifies all the columns in the entry table.
36 static const string::size_type kUpdateStatementBufferSize = 2048; 37 static const string::size_type kUpdateStatementBufferSize = 2048;
37 38
38 // Increment this version whenever updating DB tables. 39 // Increment this version whenever updating DB tables.
39 extern const int32 kCurrentDBVersion; // Global visibility for our unittest. 40 extern const int32 kCurrentDBVersion; // Global visibility for our unittest.
40 const int32 kCurrentDBVersion = 78; 41 const int32 kCurrentDBVersion = 78;
41 42
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 "name TEXT, " 1077 "name TEXT, "
1077 "store_birthday TEXT, " 1078 "store_birthday TEXT, "
1078 "db_create_version TEXT, " 1079 "db_create_version TEXT, "
1079 "db_create_time INT, " 1080 "db_create_time INT, "
1080 "next_id INT default -2, " 1081 "next_id INT default -2, "
1081 "cache_guid TEXT )"); 1082 "cache_guid TEXT )");
1082 return db_->Execute(query.c_str()); 1083 return db_->Execute(query.c_str());
1083 } 1084 }
1084 1085
1085 } // namespace syncable 1086 } // namespace syncable
1087 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698