diff options
author | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-03 00:46:31 +0000 |
---|---|---|
committer | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-03 00:46:31 +0000 |
commit | eafb218bfe55e0aa8835f452f547bbaf37a2ef59 (patch) | |
tree | 0b834a4f5ae969346d71f2fcbb78ebc8ff348528 /chrome/browser/sync/unrecoverable_error_handler.h | |
parent | 6404197b5dcbd4ac5e756d74c00c5eaf9f1d2870 (diff) | |
download | chromium_src-eafb218bfe55e0aa8835f452f547bbaf37a2ef59.zip chromium_src-eafb218bfe55e0aa8835f452f547bbaf37a2ef59.tar.gz chromium_src-eafb218bfe55e0aa8835f452f547bbaf37a2ef59.tar.bz2 |
Make DTCs implement the UnrecoverableErrorHandler interface so they can be
notified when model association fails.
BUG=36824
TEST=unit test
Review URL: http://codereview.chromium.org/660148
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40469 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/unrecoverable_error_handler.h')
-rw-r--r-- | chrome/browser/sync/unrecoverable_error_handler.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/chrome/browser/sync/unrecoverable_error_handler.h b/chrome/browser/sync/unrecoverable_error_handler.h new file mode 100644 index 0000000..2bad8c5 --- /dev/null +++ b/chrome/browser/sync/unrecoverable_error_handler.h @@ -0,0 +1,23 @@ +// Copyright (c) 2010 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 CHROME_BROWSER_SYNC_UNRECOVERABLE_ERROR_HANDLER_H_ +#define CHROME_BROWSER_SYNC_UNRECOVERABLE_ERROR_HANDLER_H_ + +namespace browser_sync { + +class UnrecoverableErrorHandler { + public: + // Call this when normal operation detects that the chrome model and the + // syncer model are inconsistent, or similar. The ProfileSyncService will + // try to avoid doing any work to avoid crashing or corrupting things + // further, and will report an error status if queried. + virtual void OnUnrecoverableError() = 0; + protected: + virtual ~UnrecoverableErrorHandler() { } +}; + +} + +#endif // CHROME_BROWSER_SYNC_UNRECOVERABLE_ERROR_HANDLER_H_ |