| 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/public/invalidation.h" | 5 #include "components/invalidation/public/invalidation.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/json/json_string_value_serializer.h" | 10 #include "base/json/json_string_value_serializer.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 return scoped_ptr<Invalidation>(); | 79 return scoped_ptr<Invalidation>(); |
| 80 } | 80 } |
| 81 return scoped_ptr<Invalidation>(new Invalidation( | 81 return scoped_ptr<Invalidation>(new Invalidation( |
| 82 id, | 82 id, |
| 83 false, | 83 false, |
| 84 version, | 84 version, |
| 85 payload, | 85 payload, |
| 86 AckHandle::CreateUnique())); | 86 AckHandle::CreateUnique())); |
| 87 } | 87 } |
| 88 | 88 |
| 89 Invalidation::Invalidation(const Invalidation& other) = default; |
| 90 |
| 89 Invalidation::~Invalidation() { | 91 Invalidation::~Invalidation() { |
| 90 } | 92 } |
| 91 | 93 |
| 92 invalidation::ObjectId Invalidation::object_id() const { | 94 invalidation::ObjectId Invalidation::object_id() const { |
| 93 return id_; | 95 return id_; |
| 94 } | 96 } |
| 95 | 97 |
| 96 bool Invalidation::is_unknown_version() const { | 98 bool Invalidation::is_unknown_version() const { |
| 97 return is_unknown_version_; | 99 return is_unknown_version_; |
| 98 } | 100 } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 int64_t version, | 171 int64_t version, |
| 170 const std::string& payload, | 172 const std::string& payload, |
| 171 AckHandle ack_handle) | 173 AckHandle ack_handle) |
| 172 : id_(id), | 174 : id_(id), |
| 173 is_unknown_version_(is_unknown_version), | 175 is_unknown_version_(is_unknown_version), |
| 174 version_(version), | 176 version_(version), |
| 175 payload_(payload), | 177 payload_(payload), |
| 176 ack_handle_(ack_handle) {} | 178 ack_handle_(ack_handle) {} |
| 177 | 179 |
| 178 } // namespace syncer | 180 } // namespace syncer |
| OLD | NEW |