| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 return InvalidationVersionMap(); | 76 return InvalidationVersionMap(); |
| 77 } | 77 } |
| 78 | 78 |
| 79 virtual void SetMaxVersion( | 79 virtual void SetMaxVersion( |
| 80 const invalidation::ObjectId& id, | 80 const invalidation::ObjectId& id, |
| 81 int64 max_invalidation_version) OVERRIDE { | 81 int64 max_invalidation_version) OVERRIDE { |
| 82 VLOG(1) << "Setting max invalidation version for " | 82 VLOG(1) << "Setting max invalidation version for " |
| 83 << ObjectIdToString(id) << " to " << max_invalidation_version; | 83 << ObjectIdToString(id) << " to " << max_invalidation_version; |
| 84 } | 84 } |
| 85 | 85 |
| 86 virtual void Forget(const ObjectIdSet& ids) OVERRIDE { |
| 87 for (ObjectIdSet::const_iterator it = ids.begin(); it != ids.end(); ++it) { |
| 88 VLOG(1) << "Forgetting invalidation state for " << ObjectIdToString(*it); |
| 89 } |
| 90 } |
| 91 |
| 86 virtual std::string GetInvalidationState() const OVERRIDE { | 92 virtual std::string GetInvalidationState() const OVERRIDE { |
| 87 return std::string(); | 93 return std::string(); |
| 88 } | 94 } |
| 89 | 95 |
| 90 virtual void SetInvalidationState(const std::string& state) OVERRIDE { | 96 virtual void SetInvalidationState(const std::string& state) OVERRIDE { |
| 91 std::string base64_state; | 97 std::string base64_state; |
| 92 CHECK(base::Base64Encode(state, &base64_state)); | 98 CHECK(base::Base64Encode(state, &base64_state)); |
| 93 VLOG(1) << "Setting invalidation state to: " << base64_state; | 99 VLOG(1) << "Setting invalidation state to: " << base64_state; |
| 94 } | 100 } |
| 95 }; | 101 }; |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 io_thread.Stop(); | 393 io_thread.Stop(); |
| 388 return 0; | 394 return 0; |
| 389 } | 395 } |
| 390 | 396 |
| 391 } // namespace | 397 } // namespace |
| 392 } // namespace syncer | 398 } // namespace syncer |
| 393 | 399 |
| 394 int main(int argc, char* argv[]) { | 400 int main(int argc, char* argv[]) { |
| 395 return syncer::SyncClientMain(argc, argv); | 401 return syncer::SyncClientMain(argc, argv); |
| 396 } | 402 } |
| OLD | NEW |