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

Side by Side Diff: sync/engine/commit_util.h

Issue 1849563005: [Sync] Add cookie jar mismatch logging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests again Created 4 years, 8 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
« no previous file with comments | « sync/engine/commit.cc ('k') | sync/engine/commit_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ENGINE_COMMIT_UTIL_H_ 5 #ifndef SYNC_ENGINE_COMMIT_UTIL_H_
6 #define SYNC_ENGINE_COMMIT_UTIL_H_ 6 #define SYNC_ENGINE_COMMIT_UTIL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 21 matching lines...) Expand all
32 32
33 // Adds bookmark extensions activity report to |message|. 33 // Adds bookmark extensions activity report to |message|.
34 SYNC_EXPORT void AddExtensionsActivityToMessage( 34 SYNC_EXPORT void AddExtensionsActivityToMessage(
35 ExtensionsActivity* activity, 35 ExtensionsActivity* activity,
36 ExtensionsActivity::Records* extensions_activity_buffer, 36 ExtensionsActivity::Records* extensions_activity_buffer,
37 sync_pb::CommitMessage* message); 37 sync_pb::CommitMessage* message);
38 38
39 // Fills the config_params field of |message|. 39 // Fills the config_params field of |message|.
40 SYNC_EXPORT void AddClientConfigParamsToMessage( 40 SYNC_EXPORT void AddClientConfigParamsToMessage(
41 ModelTypeSet enabled_types, 41 ModelTypeSet enabled_types,
42 bool cookie_jar_mismatch,
42 sync_pb::CommitMessage* message); 43 sync_pb::CommitMessage* message);
43 44
44 // Takes a snapshot of |meta_entry| and puts it into a protobuf suitable for use 45 // Takes a snapshot of |meta_entry| and puts it into a protobuf suitable for use
45 // in a commit request message. 46 // in a commit request message.
46 SYNC_EXPORT void BuildCommitItem(const syncable::Entry& meta_entry, 47 SYNC_EXPORT void BuildCommitItem(const syncable::Entry& meta_entry,
47 sync_pb::SyncEntity* sync_entry); 48 sync_pb::SyncEntity* sync_entry);
48 49
49 // Process a single commit response. Updates the entry's SERVER fields using 50 // Process a single commit response. Updates the entry's SERVER fields using
50 // |pb_commit_response| and |pb_committed_entry|. 51 // |pb_commit_response| and |pb_committed_entry|.
51 // 52 //
52 // The |deleted_folders| parameter is a set of IDs that represent deleted 53 // The |deleted_folders| parameter is a set of IDs that represent deleted
53 // folders. This function will add its entry's ID to this set if it finds 54 // folders. This function will add its entry's ID to this set if it finds
54 // itself processing a folder deletion. 55 // itself processing a folder deletion.
55 SYNC_EXPORT 56 SYNC_EXPORT
56 sync_pb::CommitResponse::ResponseType ProcessSingleCommitResponse( 57 sync_pb::CommitResponse::ResponseType ProcessSingleCommitResponse(
57 syncable::BaseWriteTransaction* trans, 58 syncable::BaseWriteTransaction* trans,
58 const sync_pb::CommitResponse_EntryResponse& server_entry, 59 const sync_pb::CommitResponse_EntryResponse& server_entry,
59 const sync_pb::SyncEntity& commit_request_entry, 60 const sync_pb::SyncEntity& commit_request_entry,
60 int64_t metahandle, 61 int64_t metahandle,
61 std::set<syncable::Id>* deleted_folders); 62 std::set<syncable::Id>* deleted_folders);
62 63
63 } // namespace commit_util 64 } // namespace commit_util
64 65
65 } // namespace syncer 66 } // namespace syncer
66 67
67 #endif // SYNC_ENGINE_COMMIT_UTIL_H_ 68 #endif // SYNC_ENGINE_COMMIT_UTIL_H_
OLDNEW
« no previous file with comments | « sync/engine/commit.cc ('k') | sync/engine/commit_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698