OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/invalidation/impl/invalidator_storage.h" | 5 #include "components/invalidation/impl/invalidator_storage.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/base64.h" | 12 #include "base/base64.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/prefs/pref_registry_simple.h" | |
16 #include "base/prefs/pref_service.h" | |
17 #include "base/values.h" | 15 #include "base/values.h" |
18 #include "components/invalidation/impl/invalidation_prefs.h" | 16 #include "components/invalidation/impl/invalidation_prefs.h" |
19 #include "components/invalidation/impl/unacked_invalidation_set.h" | 17 #include "components/invalidation/impl/unacked_invalidation_set.h" |
20 #include "components/pref_registry/pref_registry_syncable.h" | 18 #include "components/pref_registry/pref_registry_syncable.h" |
| 19 #include "components/prefs/pref_registry_simple.h" |
| 20 #include "components/prefs/pref_service.h" |
21 #include "google/cacheinvalidation/types.pb.h" | 21 #include "google/cacheinvalidation/types.pb.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 const char kInvalidatorMaxInvalidationVersions[] = | 25 const char kInvalidatorMaxInvalidationVersions[] = |
26 "invalidator.max_invalidation_versions"; | 26 "invalidator.max_invalidation_versions"; |
27 | 27 |
28 bool ValueToUnackedInvalidationStorageMap( | 28 bool ValueToUnackedInvalidationStorageMap( |
29 const base::ListValue& value, | 29 const base::ListValue& value, |
30 syncer::UnackedInvalidationsMap* map) { | 30 syncer::UnackedInvalidationsMap* map) { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 } | 131 } |
132 | 132 |
133 void InvalidatorStorage::Clear() { | 133 void InvalidatorStorage::Clear() { |
134 DCHECK(thread_checker_.CalledOnValidThread()); | 134 DCHECK(thread_checker_.CalledOnValidThread()); |
135 pref_service_->ClearPref(prefs::kInvalidatorSavedInvalidations); | 135 pref_service_->ClearPref(prefs::kInvalidatorSavedInvalidations); |
136 pref_service_->ClearPref(prefs::kInvalidatorClientId); | 136 pref_service_->ClearPref(prefs::kInvalidatorClientId); |
137 pref_service_->ClearPref(prefs::kInvalidatorInvalidationState); | 137 pref_service_->ClearPref(prefs::kInvalidatorInvalidationState); |
138 } | 138 } |
139 | 139 |
140 } // namespace invalidation | 140 } // namespace invalidation |
OLD | NEW |