Chromium Code Reviews| Index: chrome/browser/sync/sessions/unrecoverable_error_info.h |
| diff --git a/chrome/browser/sync/sessions/unrecoverable_error_info.h b/chrome/browser/sync/sessions/unrecoverable_error_info.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..44f20e28ab14bb592c28b52144b90404c69548d3 |
| --- /dev/null |
| +++ b/chrome/browser/sync/sessions/unrecoverable_error_info.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright (c) 2011 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_SESSIONS_UNRECOVERABLE_ERROR_INFO_H_ |
| +#define CHROME_BROWSER_SYNC_SESSIONS_UNRECOVERABLE_ERROR_INFO_H_ |
| +// TODO(lipalani): Figure out the right location for this class so it is |
| +// accessible outside of sync engine as well. |
| +#pragma once |
| + |
| +#include <string> |
| + |
| +#include "base/location.h" |
| + |
| +namespace browser_sync { |
| +namespace sessions { |
|
akalin
2011/10/26 00:25:05
space before class
lipalani1
2011/10/26 01:39:11
Done.
|
| +class UnrecoverableErrorInfo { |
| + public: |
| + UnrecoverableErrorInfo(); |
| + UnrecoverableErrorInfo( |
| + const tracked_objects::Location& location, |
| + const std::string& message); |
| + ~UnrecoverableErrorInfo(); |
| + |
| + void Reset(const tracked_objects::Location& location, |
| + const std::string& message); |
|
akalin
2011/10/26 00:25:05
indent
lipalani1
2011/10/26 01:39:11
Done.
|
| + |
| + bool IsSet() const; |
| + |
| + const tracked_objects::Location& location() const; |
| + const std::string& message() const; |
| + |
| + private: |
| + tracked_objects::Location location_; |
| + std::string message_; |
| + bool is_set_; |
| +}; |
| + |
| +} // namespace sessions |
| +} // namespace browser_sync |
| + |
| +#endif // CHROME_BROWSER_SYNC_SESSIONS_UNRECOVERABLE_ERROR_INFO_H_ |