| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include <cstddef> | 5 #include <cstddef> |
| 6 #include <cstdio> | 6 #include <cstdio> |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
| 10 #include "base/base64.h" | 10 #include "base/base64.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 return InvalidationVersionMap(); | 93 return InvalidationVersionMap(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 virtual void SetMaxVersion( | 96 virtual void SetMaxVersion( |
| 97 const invalidation::ObjectId& id, | 97 const invalidation::ObjectId& id, |
| 98 int64 max_invalidation_version) OVERRIDE { | 98 int64 max_invalidation_version) OVERRIDE { |
| 99 LOG(INFO) << "Setting max invalidation version for " | 99 LOG(INFO) << "Setting max invalidation version for " |
| 100 << ObjectIdToString(id) << " to " << max_invalidation_version; | 100 << ObjectIdToString(id) << " to " << max_invalidation_version; |
| 101 } | 101 } |
| 102 | 102 |
| 103 virtual void Forget(const ObjectIdSet& ids) OVERRIDE { |
| 104 for (ObjectIdSet::const_iterator it = ids.begin(); it != ids.end(); ++it) { |
| 105 LOG(INFO) << "Forgetting saved state for " << ObjectIdToString(*it); |
| 106 } |
| 107 } |
| 108 |
| 103 virtual std::string GetInvalidationState() const OVERRIDE { | 109 virtual std::string GetInvalidationState() const OVERRIDE { |
| 104 return std::string(); | 110 return std::string(); |
| 105 } | 111 } |
| 106 | 112 |
| 107 virtual void SetInvalidationState(const std::string& state) OVERRIDE { | 113 virtual void SetInvalidationState(const std::string& state) OVERRIDE { |
| 108 std::string base64_state; | 114 std::string base64_state; |
| 109 CHECK(base::Base64Encode(state, &base64_state)); | 115 CHECK(base::Base64Encode(state, &base64_state)); |
| 110 LOG(INFO) << "Setting invalidation state to: " << base64_state; | 116 LOG(INFO) << "Setting invalidation state to: " << base64_state; |
| 111 } | 117 } |
| 112 }; | 118 }; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 io_thread.Stop(); | 261 io_thread.Stop(); |
| 256 return 0; | 262 return 0; |
| 257 } | 263 } |
| 258 | 264 |
| 259 } // namespace | 265 } // namespace |
| 260 } // namespace syncer | 266 } // namespace syncer |
| 261 | 267 |
| 262 int main(int argc, char* argv[]) { | 268 int main(int argc, char* argv[]) { |
| 263 return syncer::SyncListenNotificationsMain(argc, argv); | 269 return syncer::SyncListenNotificationsMain(argc, argv); |
| 264 } | 270 } |
| OLD | NEW |