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_UTIL_REPORT_UNRECOVERABLE_ERROR_FUNCTION_H_ | 5 #ifndef SYNC_UTIL_REPORT_UNRECOVERABLE_ERROR_FUNCTION_H_ |
6 #define SYNC_UTIL_REPORT_UNRECOVERABLE_ERROR_FUNCTION_H_ | 6 #define SYNC_UTIL_REPORT_UNRECOVERABLE_ERROR_FUNCTION_H_ |
7 #pragma once | |
8 | 7 |
9 namespace syncer { | 8 namespace syncer { |
10 | 9 |
11 // A ReportUnrecoverableErrorFunction is a function that is called | 10 // A ReportUnrecoverableErrorFunction is a function that is called |
12 // immediately when an unrecoverable error is encountered. Unlike | 11 // immediately when an unrecoverable error is encountered. Unlike |
13 // UnrecoverableErrorHandler, it should just log the error and any | 12 // UnrecoverableErrorHandler, it should just log the error and any |
14 // context surrounding it. | 13 // context surrounding it. |
15 typedef void (*ReportUnrecoverableErrorFunction)(void); | 14 typedef void (*ReportUnrecoverableErrorFunction)(void); |
16 | 15 |
17 } // namespace syncer | 16 } // namespace syncer |
18 | 17 |
19 #endif // SYNC_UTIL_REPORT_UNRECOVERABLE_ERROR_FUNCTION_H_ | 18 #endif // SYNC_UTIL_REPORT_UNRECOVERABLE_ERROR_FUNCTION_H_ |
OLD | NEW |