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

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

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 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
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 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void ResetAndCreateConnection(); 180 void ResetAndCreateConnection();
181 181
182 private: 182 private:
183 friend class TestDirectoryBackingStore; 183 friend class TestDirectoryBackingStore;
184 friend class DirectoryBackingStoreTest; 184 friend class DirectoryBackingStoreTest;
185 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, 185 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest,
186 IncreaseDatabasePageSizeFrom4KTo32K); 186 IncreaseDatabasePageSizeFrom4KTo32K);
187 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, 187 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest,
188 CatastrophicErrorHandler_KeptAcrossReset); 188 CatastrophicErrorHandler_KeptAcrossReset);
189 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, 189 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest,
190 CatastrophicErrorHandler_Invocation); 190 CatastrophicErrorHandler_InvocationDuringLoad);
191 FRIEND_TEST_ALL_PREFIXES(
192 DirectoryBackingStoreTest,
193 CatastrophicErrorHandler_InvocationDuringSaveChanges);
191 194
192 // Drop all tables in preparation for reinitialization. 195 // Drop all tables in preparation for reinitialization.
193 void DropAllTables(); 196 void DropAllTables();
194 197
195 bool SafeToPurgeOnLoading(const EntryKernel& entry) const; 198 bool SafeToPurgeOnLoading(const EntryKernel& entry) const;
196 199
197 // Drops a table if it exists, harmless if the table did not already exist. 200 // Drops a table if it exists, harmless if the table did not already exist.
198 bool SafeDropTable(const char* table_name); 201 bool SafeDropTable(const char* table_name);
199 202
200 bool CreateTables(); 203 bool CreateTables();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // sql::Connection is destroyed/recreated. 254 // sql::Connection is destroyed/recreated.
252 base::Closure catastrophic_error_handler_; 255 base::Closure catastrophic_error_handler_;
253 256
254 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore); 257 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore);
255 }; 258 };
256 259
257 } // namespace syncable 260 } // namespace syncable
258 } // namespace syncer 261 } // namespace syncer
259 262
260 #endif // SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ 263 #endif // SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/attachments/proto/BUILD.gn ('k') | sync/syncable/directory_backing_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698