| 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 "sync/notifier/invalidation_util.h" | 5 #include "sync/internal_api/public/base/invalidation_util.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "google/cacheinvalidation/include/types.h" | 13 #include "google/cacheinvalidation/include/types.h" |
| 14 #include "google/cacheinvalidation/types.pb.h" | 14 #include "google/cacheinvalidation/types.pb.h" |
| 15 #include "sync/internal_api/public/base/invalidation.h" | 15 #include "sync/internal_api/public/base/invalidation.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const invalidation::Invalidation& invalidation) { | 122 const invalidation::Invalidation& invalidation) { |
| 123 std::stringstream ss; | 123 std::stringstream ss; |
| 124 ss << "{ "; | 124 ss << "{ "; |
| 125 ss << "object_id: " << ObjectIdToString(invalidation.object_id()) << ", "; | 125 ss << "object_id: " << ObjectIdToString(invalidation.object_id()) << ", "; |
| 126 ss << "version: " << invalidation.version(); | 126 ss << "version: " << invalidation.version(); |
| 127 ss << " }"; | 127 ss << " }"; |
| 128 return ss.str(); | 128 return ss.str(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace syncer | 131 } // namespace syncer |
| OLD | NEW |