DescriptionDatabase support for GDataDirectoryService.
* Add methods InitFromDB and SaveToDB to GDataDirectoryService, along with other helper methods to save/load the directory service from level db instead of from a proto file.
* Add a wrapper class GDataDirectoryServiceDB to hold the level db, with methods Create, Save, Read, Truncate, etc. This object lives on the blocking thread.
* Add CreateDBParams to facilitate creation of GDataDirectoryServiceDB on the blocking thread.
* Add GDataDirectoryService::FromProtoString to create a GDataEntry from a string saved in the db.
* Add unit tests for the db methods.
* Move LoadRootFeedParams to gdata_params. Move typedefs before struct definitions.
* Add a timer to measure the time to restore the filesystem from db or proto. For hugefileman, it's 3000 msec for db, and 2500 for proto, with debug code on a z600. Measurements on device TBD.
BUG=127856
TEST=unit tests, manual tests with hugefileman.
TBR=sky@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150022
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #
Total comments: 9
Patch Set 5 : #Patch Set 6 : #Patch Set 7 : #Patch Set 8 : #Patch Set 9 : #Patch Set 10 : #Patch Set 11 : #Patch Set 12 : #Patch Set 13 : #Patch Set 14 : #Patch Set 15 : #Patch Set 16 : #Patch Set 17 : #Patch Set 18 : #Patch Set 19 : #Patch Set 20 : #Patch Set 21 : #
Total comments: 36
Patch Set 22 : satorux feedback #Patch Set 23 : use ScopedClosureRunner #Patch Set 24 : add missing file #Patch Set 25 : rebase #Patch Set 26 : minor #
Total comments: 33
Patch Set 27 : more satorux review feedback #Patch Set 28 : nits #
Total comments: 8
Patch Set 29 : rebase + satorux feedback #
Total comments: 6
Patch Set 30 : #
Total comments: 4
Patch Set 31 : another error fix #Patch Set 32 : oops #Patch Set 33 : change callback of InitFromDB #Patch Set 34 : comments #
Total comments: 4
Patch Set 35 : more fixes #Patch Set 36 : rebase #Messages
Total messages: 36 (0 generated)
|