[go: nahoru, domu]

Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: sync/notifier/invalidation_util.cc
Issue 10796051: Change protoc build rule to not use cygwin bash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the additional paths Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/notifier/invalidation_util.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "google/cacheinvalidation/include/types.h" 9 #include "google/cacheinvalidation/include/types.h"
10 #include "google/cacheinvalidation/v2/types.pb.h" 10 #include "google/cacheinvalidation/types.pb.h"
11 11
12 namespace syncer { 12 namespace syncer {
13 13
14 bool ObjectIdLessThan::operator()(const invalidation::ObjectId& lhs, 14 bool ObjectIdLessThan::operator()(const invalidation::ObjectId& lhs,
15 const invalidation::ObjectId& rhs) const { 15 const invalidation::ObjectId& rhs) const {
16 return (lhs.source() < rhs.source()) || 16 return (lhs.source() < rhs.source()) ||
17 (lhs.source() == rhs.source() && lhs.name() < rhs.name()); 17 (lhs.source() == rhs.source() && lhs.name() < rhs.name());
18 } 18 }
19 19
20 bool RealModelTypeToObjectId(ModelType model_type, 20 bool RealModelTypeToObjectId(ModelType model_type,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const invalidation::Invalidation& invalidation) { 73 const invalidation::Invalidation& invalidation) {
74 std::stringstream ss; 74 std::stringstream ss;
75 ss << "{ "; 75 ss << "{ ";
76 ss << "object_id: " << ObjectIdToString(invalidation.object_id()) << ", "; 76 ss << "object_id: " << ObjectIdToString(invalidation.object_id()) << ", ";
77 ss << "version: " << invalidation.version(); 77 ss << "version: " << invalidation.version();
78 ss << " }"; 78 ss << " }";
79 return ss.str(); 79 return ss.str();
80 } 80 }
81 81
82 } // namespace syncer 82 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/chrome_invalidation_client_unittest.cc ('k') | sync/notifier/non_blocking_invalidation_notifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698