| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 "xmpp-allow-insecure-connection"; | 65 "xmpp-allow-insecure-connection"; |
| 66 const char kNotificationMethodSwitch[] = "notification-method"; | 66 const char kNotificationMethodSwitch[] = "notification-method"; |
| 67 | 67 |
| 68 class NullInvalidationStateTracker | 68 class NullInvalidationStateTracker |
| 69 : public base::SupportsWeakPtr<NullInvalidationStateTracker>, | 69 : public base::SupportsWeakPtr<NullInvalidationStateTracker>, |
| 70 public InvalidationStateTracker { | 70 public InvalidationStateTracker { |
| 71 public: | 71 public: |
| 72 NullInvalidationStateTracker() {} | 72 NullInvalidationStateTracker() {} |
| 73 virtual ~NullInvalidationStateTracker() {} | 73 virtual ~NullInvalidationStateTracker() {} |
| 74 | 74 |
| 75 virtual InvalidationVersionMap GetAllMaxVersions() const OVERRIDE { | 75 virtual InvalidationStateMap GetAllInvalidationStates() const OVERRIDE { |
| 76 return InvalidationVersionMap(); | 76 return InvalidationStateMap(); |
| 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 { | 86 virtual void Forget(const ObjectIdSet& ids) OVERRIDE { |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 io_thread.Stop(); | 393 io_thread.Stop(); |
| 394 return 0; | 394 return 0; |
| 395 } | 395 } |
| 396 | 396 |
| 397 } // namespace | 397 } // namespace |
| 398 } // namespace syncer | 398 } // namespace syncer |
| 399 | 399 |
| 400 int main(int argc, char* argv[]) { | 400 int main(int argc, char* argv[]) { |
| 401 return syncer::SyncClientMain(argc, argv); | 401 return syncer::SyncClientMain(argc, argv); |
| 402 } | 402 } |
| OLD | NEW |