summaryrefslogtreecommitdiffstats
path: root/base/prefs
diff options
context:
space:
mode:
authordgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-28 08:27:58 +0000
committerdgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-28 08:27:58 +0000
commit3edebd95a2d5609da61477d59f7fecd69bd371bb (patch)
treeca9713c2584c9213cf7624b95b9457332ada0afd /base/prefs
parent3b4c28496f28426fc849dda0c8c1dd808b73f11e (diff)
downloadchromium_src-3edebd95a2d5609da61477d59f7fecd69bd371bb.zip
chromium_src-3edebd95a2d5609da61477d59f7fecd69bd371bb.tar.gz
chromium_src-3edebd95a2d5609da61477d59f7fecd69bd371bb.tar.bz2
Implementation of leveldb-backed PrefStore.
This is not hooked up yet, migration code from Json-backed stores is needed, among other things. BUG=362814 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271602 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272671 Review URL: https://codereview.chromium.org/169323003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273174 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/prefs')
-rw-r--r--base/prefs/json_pref_store.cc5
-rw-r--r--base/prefs/persistent_pref_store.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/base/prefs/json_pref_store.cc b/base/prefs/json_pref_store.cc
index e99d64f..a6c2362 100644
--- a/base/prefs/json_pref_store.cc
+++ b/base/prefs/json_pref_store.cc
@@ -330,6 +330,11 @@ void JsonPrefStore::OnFileRead(scoped_ptr<base::Value> value,
// operation itself.
NOTREACHED();
break;
+ case PREF_READ_ERROR_LEVELDB_IO:
+ case PREF_READ_ERROR_LEVELDB_CORRUPTION_READ_ONLY:
+ case PREF_READ_ERROR_LEVELDB_CORRUPTION:
+ // These are specific to LevelDBPrefStore.
+ NOTREACHED();
case PREF_READ_ERROR_MAX_ENUM:
NOTREACHED();
break;
diff --git a/base/prefs/persistent_pref_store.h b/base/prefs/persistent_pref_store.h
index 177d860..11d2a54 100644
--- a/base/prefs/persistent_pref_store.h
+++ b/base/prefs/persistent_pref_store.h
@@ -33,6 +33,9 @@ class BASE_PREFS_EXPORT PersistentPrefStore : public WriteablePrefStore {
// Indicates that ReadPrefs() couldn't complete synchronously and is waiting
// for an asynchronous task to complete first.
PREF_READ_ERROR_ASYNCHRONOUS_TASK_INCOMPLETE = 10,
+ PREF_READ_ERROR_LEVELDB_IO = 11,
+ PREF_READ_ERROR_LEVELDB_CORRUPTION_READ_ONLY = 12,
+ PREF_READ_ERROR_LEVELDB_CORRUPTION = 13,
PREF_READ_ERROR_MAX_ENUM
};