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

Side by Side Diff: chrome/browser/sync/engine/syncer_proto_util.h

Issue 9149017: Remove broken variables from sync's AllStatus (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_
6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ 6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 class ClientToServerMessage; 34 class ClientToServerMessage;
35 class ServerConnectionManager; 35 class ServerConnectionManager;
36 class SyncEntity; 36 class SyncEntity;
37 class CommitResponse_EntryResponse; 37 class CommitResponse_EntryResponse;
38 38
39 class SyncerProtoUtil { 39 class SyncerProtoUtil {
40 public: 40 public:
41 // Posts the given message and fills the buffer with the returned value. 41 // Posts the given message and fills the buffer with the returned value.
42 // Returns true on success. Also handles store birthday verification: 42 // Returns true on success. Also handles store birthday verification: will
43 // session->status()->syncer_stuck_ is set true if the birthday is 43 // produce a SyncProtocolError if the birthday is incorrect. A false value
44 // incorrect. A false value will always be returned if birthday is bad. 44 // will always be returned if birthday is bad.
45 static bool PostClientToServerMessage( 45 static bool PostClientToServerMessage(
46 const ClientToServerMessage& msg, 46 const ClientToServerMessage& msg,
47 sync_pb::ClientToServerResponse* response, 47 sync_pb::ClientToServerResponse* response,
48 sessions::SyncSession* session); 48 sessions::SyncSession* session);
49 49
50 // Compares a syncable Entry to SyncEntity, returns true iff the data is 50 // Compares a syncable Entry to SyncEntity, returns true iff the data is
51 // identical. 51 // identical.
52 // 52 //
53 // TODO(sync): The places where this function is used are arguable big causes 53 // TODO(sync): The places where this function is used are arguable big causes
54 // of the fragility, because there's a tendency to freak out the moment the 54 // of the fragility, because there's a tendency to freak out the moment the
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, VerifyResponseBirthday); 129 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, VerifyResponseBirthday);
130 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingNoDatatypes); 130 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingNoDatatypes);
131 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingWithDatatypes); 131 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingWithDatatypes);
132 132
133 DISALLOW_COPY_AND_ASSIGN(SyncerProtoUtil); 133 DISALLOW_COPY_AND_ASSIGN(SyncerProtoUtil);
134 }; 134 };
135 135
136 } // namespace browser_sync 136 } // namespace browser_sync
137 137
138 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ 138 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698