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

Side by Side Diff: sync/internal_api/public/sessions/error_counters.h

Issue 10523003: Refactor following sync commit loop change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another rebase Created 8 years, 6 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
« no previous file with comments | « sync/engine/syncer_unittest.cc ('k') | sync/internal_api/public/sessions/error_counters.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_INTERNAL_API_PUBLIC_SESSIONS_ERROR_COUNTERS_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SESSIONS_ERROR_COUNTERS_H_
6 #define SYNC_INTERNAL_API_PUBLIC_SESSIONS_ERROR_COUNTERS_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_SESSIONS_ERROR_COUNTERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "sync/internal_api/public/util/syncer_error.h" 10 #include "sync/internal_api/public/util/syncer_error.h"
11 #include "sync/protocol/sync_protocol_error.h" 11 #include "sync/protocol/sync_protocol_error.h"
12 12
13 namespace browser_sync { 13 namespace browser_sync {
14 namespace sessions { 14 namespace sessions {
15 15
16 // Counters for various errors that can occur repeatedly during a sync session. 16 // Counters for various errors that can occur repeatedly during a sync session.
17 // TODO(lipalani) : Rename this structure to Error. 17 // TODO(lipalani) : Rename this structure to Error.
18 struct ErrorCounters { 18 struct ErrorCounters {
19 ErrorCounters(); 19 ErrorCounters();
20 20
21 // Any protocol errors that we received during this sync session. 21 // Any protocol errors that we received during this sync session.
22 SyncProtocolError sync_protocol_error; 22 SyncProtocolError sync_protocol_error;
23 23
24 // Records the most recent results of PostCommit and GetUpdates commands. 24 // Records the most recent results of PostCommit and GetUpdates commands.
25 SyncerError last_download_updates_result; 25 SyncerError last_download_updates_result;
26 SyncerError last_post_commit_result; 26 SyncerError commit_result;
27 SyncerError last_process_commit_response_result;
28 }; 27 };
29 28
30 } // namespace sessions 29 } // namespace sessions
31 } // namespace browser_sync 30 } // namespace browser_sync
32 31
33 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_ERROR_COUNTERS_H_ 32 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_ERROR_COUNTERS_H_
OLDNEW
« no previous file with comments | « sync/engine/syncer_unittest.cc ('k') | sync/internal_api/public/sessions/error_counters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698