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

Side by Side Diff: sync/engine/commit.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 | « components/sync_driver/glue/sync_backend_host_mock.cc ('k') | sync/engine/commit.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 (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_ENGINE_COMMIT_H_ 5 #ifndef SYNC_ENGINE_COMMIT_H_
6 #define SYNC_ENGINE_COMMIT_H_ 6 #define SYNC_ENGINE_COMMIT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // This destructor will DCHECK if CleanUp() has not been called. 50 // This destructor will DCHECK if CleanUp() has not been called.
51 ~Commit(); 51 ~Commit();
52 52
53 static Commit* Init( 53 static Commit* Init(
54 ModelTypeSet requested_types, 54 ModelTypeSet requested_types,
55 ModelTypeSet enabled_types, 55 ModelTypeSet enabled_types,
56 size_t max_entries, 56 size_t max_entries,
57 const std::string& account_name, 57 const std::string& account_name,
58 const std::string& cache_guid, 58 const std::string& cache_guid,
59 bool cookie_jar_mismatch,
59 CommitProcessor* commit_processor, 60 CommitProcessor* commit_processor,
60 ExtensionsActivity* extensions_activity); 61 ExtensionsActivity* extensions_activity);
61 62
62 SyncerError PostAndProcessResponse(sessions::NudgeTracker* nudge_tracker, 63 SyncerError PostAndProcessResponse(sessions::NudgeTracker* nudge_tracker,
63 sessions::SyncSession* session, 64 sessions::SyncSession* session,
64 sessions::StatusController* status, 65 sessions::StatusController* status,
65 ExtensionsActivity* extensions_activity); 66 ExtensionsActivity* extensions_activity);
66 67
67 // Cleans up state associated with this commit. Must be called before the 68 // Cleans up state associated with this commit. Must be called before the
68 // destructor. 69 // destructor.
69 void CleanUp(); 70 void CleanUp();
70 71
71 private: 72 private:
72 ContributionMap contributions_; 73 ContributionMap contributions_;
73 74
74 sync_pb::ClientToServerMessage message_; 75 sync_pb::ClientToServerMessage message_;
75 sync_pb::ClientToServerResponse response_; 76 sync_pb::ClientToServerResponse response_;
76 ExtensionsActivity::Records extensions_activity_buffer_; 77 ExtensionsActivity::Records extensions_activity_buffer_;
77 78
78 // Debug only flag used to indicate if it's safe to destruct the object. 79 // Debug only flag used to indicate if it's safe to destruct the object.
79 bool cleaned_up_; 80 bool cleaned_up_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(Commit); 82 DISALLOW_COPY_AND_ASSIGN(Commit);
82 }; 83 };
83 84
84 } // namespace syncer 85 } // namespace syncer
85 86
86 #endif // SYNC_ENGINE_COMMIT_H_ 87 #endif // SYNC_ENGINE_COMMIT_H_
OLDNEW
« no previous file with comments | « components/sync_driver/glue/sync_backend_host_mock.cc ('k') | sync/engine/commit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698