diff options
Diffstat (limited to 'sync/internal_api/public/util/report_unrecoverable_error_function.h')
-rw-r--r-- | sync/internal_api/public/util/report_unrecoverable_error_function.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sync/internal_api/public/util/report_unrecoverable_error_function.h b/sync/internal_api/public/util/report_unrecoverable_error_function.h new file mode 100644 index 0000000..ead73f0 --- /dev/null +++ b/sync/internal_api/public/util/report_unrecoverable_error_function.h @@ -0,0 +1,19 @@ +// 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_UTIL_REPORT_UNRECOVERABLE_ERROR_FUNCTION_H_ +#define SYNC_UTIL_REPORT_UNRECOVERABLE_ERROR_FUNCTION_H_ +#pragma once + +namespace browser_sync { + +// A ReportUnrecoverableErrorFunction is a function that is called +// immediately when an unrecoverable error is encountered. Unlike +// UnrecoverableErrorHandler, it should just log the error and any +// context surrounding it. +typedef void (*ReportUnrecoverableErrorFunction)(void); + +} // namespace browser_sync + +#endif // SYNC_UTIL_REPORT_UNRECOVERABLE_ERROR_FUNCTION_H_ |