| 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 #ifndef SYNC_INTERNAL_API_PUBLIC_BASE_UNIQUE_POSITION_H_ | 5 #ifndef COMPONENTS_SYNC_BASE_UNIQUE_POSITION_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_BASE_UNIQUE_POSITION_H_ | 6 #define COMPONENTS_SYNC_BASE_UNIQUE_POSITION_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "sync/base/sync_export.h" | 13 #include "components/sync/base/sync_export.h" |
| 14 | 14 |
| 15 namespace sync_pb { | 15 namespace sync_pb { |
| 16 class UniquePosition; | 16 class UniquePosition; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace syncer { | 19 namespace syncer { |
| 20 | 20 |
| 21 // A class to represent positions. | 21 // A class to represent positions. |
| 22 // | 22 // |
| 23 // Valid UniquePosition objects have the following properties: | 23 // Valid UniquePosition objects have the following properties: |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 static bool IsValidCompressed(const std::string& str); | 137 static bool IsValidCompressed(const std::string& str); |
| 138 | 138 |
| 139 // The position value after it has been run through the custom compression | 139 // The position value after it has been run through the custom compression |
| 140 // algorithm. See Compress() and Uncompress() functions above. | 140 // algorithm. See Compress() and Uncompress() functions above. |
| 141 std::string compressed_; | 141 std::string compressed_; |
| 142 bool is_valid_; | 142 bool is_valid_; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 } // namespace syncer | 145 } // namespace syncer |
| 146 | 146 |
| 147 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_UNIQUE_POSITION_H_ | 147 #endif // COMPONENTS_SYNC_BASE_UNIQUE_POSITION_H_ |
| OLD | NEW |