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

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

Issue 10398051: [Sync] Replace TalkMediator*/MediatorThread* with PushClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, fix test Created 8 years, 7 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/sync.gyp ('k') | sync/syncable/syncable.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 #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
11 #include "base/base64.h" 11 #include "base/base64.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/hash_tables.h" 13 #include "base/hash_tables.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/metrics/histogram.h" 15 #include "base/metrics/histogram.h"
16 #include "base/rand_util.h" 16 #include "base/rand_util.h"
17 #include "base/stl_util.h" 17 #include "base/stl_util.h"
18 #include "base/string_number_conversions.h" 18 #include "base/string_number_conversions.h"
19 #include "base/stringprintf.h" 19 #include "base/stringprintf.h"
20 #include "base/time.h" 20 #include "base/time.h"
21 #include "sql/connection.h" 21 #include "sql/connection.h"
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/service_constants.h"
26 #include "sync/protocol/sync.pb.h" 25 #include "sync/protocol/sync.pb.h"
27 #include "sync/syncable/syncable-inl.h" 26 #include "sync/syncable/syncable-inl.h"
28 #include "sync/syncable/syncable_columns.h" 27 #include "sync/syncable/syncable_columns.h"
29 #include "sync/util/time.h" 28 #include "sync/util/time.h"
30 29
31 using std::string; 30 using std::string;
32 31
33 namespace syncable { 32 namespace syncable {
34 33
35 // This just has to be big enough to hold an UPDATE or INSERT statement that 34 // This just has to be big enough to hold an UPDATE or INSERT statement that
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 "name TEXT, " 1068 "name TEXT, "
1070 "store_birthday TEXT, " 1069 "store_birthday TEXT, "
1071 "db_create_version TEXT, " 1070 "db_create_version TEXT, "
1072 "db_create_time INT, " 1071 "db_create_time INT, "
1073 "next_id INT default -2, " 1072 "next_id INT default -2, "
1074 "cache_guid TEXT )"); 1073 "cache_guid TEXT )");
1075 return db_->Execute(query.c_str()); 1074 return db_->Execute(query.c_str());
1076 } 1075 }
1077 1076
1078 } // namespace syncable 1077 } // namespace syncable
OLDNEW
« no previous file with comments | « sync/sync.gyp ('k') | sync/syncable/syncable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698