blob: c2f532fbdad57ba31621aa5783e0474e1df53aae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SYNC_SESSIONS_ERROR_COUNTERS_H_
#define SYNC_SESSIONS_ERROR_COUNTERS_H_
#pragma once
#include "base/basictypes.h"
#include "sync/protocol/sync_protocol_error.h"
#include "sync/util/syncer_error.h"
namespace browser_sync {
namespace sessions {
// Counters for various errors that can occur repeatedly during a sync session.
// TODO(lipalani) : Rename this structure to Error.
struct ErrorCounters {
ErrorCounters();
// Any protocol errors that we received during this sync session.
SyncProtocolError sync_protocol_error;
// Records the most recent results of PostCommit and GetUpdates commands.
SyncerError last_download_updates_result;
SyncerError last_post_commit_result;
SyncerError last_process_commit_response_result;
};
} // namespace sessions
} // namespace browser_sync
#endif // SYNC_SESSIONS_ERROR_COUNTERS_H_
|