| OLD | NEW |
| 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_ |
| OLD | NEW |