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

Side by Side Diff: components/invalidation/invalidator_storage.cc

Issue 387733004: Move sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (GN) Comment out dependency on internal target Created 6 years, 5 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
OLDNEW
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/invalidator_storage.h" 5 #include "components/invalidation/invalidator_storage.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/prefs/pref_registry_simple.h" 14 #include "base/prefs/pref_registry_simple.h"
15 #include "base/prefs/pref_service.h" 15 #include "base/prefs/pref_service.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "components/invalidation/invalidation_prefs.h" 17 #include "components/invalidation/invalidation_prefs.h"
18 #include "components/invalidation/unacked_invalidation_set.h"
18 #include "components/pref_registry/pref_registry_syncable.h" 19 #include "components/pref_registry/pref_registry_syncable.h"
19 #include "google/cacheinvalidation/types.pb.h" 20 #include "google/cacheinvalidation/types.pb.h"
20 #include "sync/notifier/unacked_invalidation_set.h"
21 21
22 namespace { 22 namespace {
23 23
24 const char kInvalidatorMaxInvalidationVersions[] = 24 const char kInvalidatorMaxInvalidationVersions[] =
25 "invalidator.max_invalidation_versions"; 25 "invalidator.max_invalidation_versions";
26 26
27 bool ValueToUnackedInvalidationStorageMap( 27 bool ValueToUnackedInvalidationStorageMap(
28 const base::ListValue& value, 28 const base::ListValue& value,
29 syncer::UnackedInvalidationsMap* map) { 29 syncer::UnackedInvalidationsMap* map) {
30 for (size_t i = 0; i != value.GetSize(); ++i) { 30 for (size_t i = 0; i != value.GetSize(); ++i) {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 137 }
138 138
139 void InvalidatorStorage::Clear() { 139 void InvalidatorStorage::Clear() {
140 DCHECK(thread_checker_.CalledOnValidThread()); 140 DCHECK(thread_checker_.CalledOnValidThread());
141 pref_service_->ClearPref(prefs::kInvalidatorSavedInvalidations); 141 pref_service_->ClearPref(prefs::kInvalidatorSavedInvalidations);
142 pref_service_->ClearPref(prefs::kInvalidatorClientId); 142 pref_service_->ClearPref(prefs::kInvalidatorClientId);
143 pref_service_->ClearPref(prefs::kInvalidatorInvalidationState); 143 pref_service_->ClearPref(prefs::kInvalidatorInvalidationState);
144 } 144 }
145 145
146 } // namespace invalidation 146 } // namespace invalidation
OLDNEW
« no previous file with comments | « components/invalidation/invalidator_storage.h ('k') | components/invalidation/invalidator_test_template.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698