| 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/invalidation.h" | 5 #include "components/invalidation/base/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" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "components/invalidation/ack_handler.h" | 15 #include "components/invalidation/base/ack_handler.h" |
| 16 #include "components/invalidation/invalidation_util.h" | 16 #include "components/invalidation/base/invalidation_util.h" |
| 17 | 17 |
| 18 namespace syncer { | 18 namespace syncer { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 const char kObjectIdKey[] = "objectId"; | 21 const char kObjectIdKey[] = "objectId"; |
| 22 const char kIsUnknownVersionKey[] = "isUnknownVersion"; | 22 const char kIsUnknownVersionKey[] = "isUnknownVersion"; |
| 23 const char kVersionKey[] = "version"; | 23 const char kVersionKey[] = "version"; |
| 24 const char kPayloadKey[] = "payload"; | 24 const char kPayloadKey[] = "payload"; |
| 25 const int64 kInvalidVersion = -1; | 25 const int64 kInvalidVersion = -1; |
| 26 } | 26 } |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 const std::string& payload, | 170 const std::string& payload, |
| 171 AckHandle ack_handle) | 171 AckHandle ack_handle) |
| 172 : id_(id), | 172 : id_(id), |
| 173 is_unknown_version_(is_unknown_version), | 173 is_unknown_version_(is_unknown_version), |
| 174 version_(version), | 174 version_(version), |
| 175 payload_(payload), | 175 payload_(payload), |
| 176 ack_handle_(ack_handle) { | 176 ack_handle_(ack_handle) { |
| 177 } | 177 } |
| 178 | 178 |
| 179 } // namespace syncer | 179 } // namespace syncer |
| OLD | NEW |