OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_SYNC_SESSIONS_UNRECOVERABLE_ERROR_INFO_H_ |
| 6 #define CHROME_BROWSER_SYNC_SESSIONS_UNRECOVERABLE_ERROR_INFO_H_ |
| 7 // TODO(lipalani): Figure out the right location for this class so it is |
| 8 // accessible outside of sync engine as well. |
| 9 #pragma once |
| 10 |
| 11 #include <string> |
| 12 |
| 13 #include "base/location.h" |
| 14 |
| 15 namespace browser_sync { |
| 16 namespace sessions { |
| 17 |
| 18 class UnrecoverableErrorInfo { |
| 19 public: |
| 20 UnrecoverableErrorInfo(); |
| 21 UnrecoverableErrorInfo( |
| 22 const tracked_objects::Location& location, |
| 23 const std::string& message); |
| 24 ~UnrecoverableErrorInfo(); |
| 25 |
| 26 void Reset(const tracked_objects::Location& location, |
| 27 const std::string& message); |
| 28 |
| 29 bool IsSet() const; |
| 30 |
| 31 const tracked_objects::Location& location() const; |
| 32 const std::string& message() const; |
| 33 |
| 34 private: |
| 35 tracked_objects::Location location_; |
| 36 std::string message_; |
| 37 bool is_set_; |
| 38 }; |
| 39 |
| 40 } // namespace sessions |
| 41 } // namespace browser_sync |
| 42 |
| 43 #endif // CHROME_BROWSER_SYNC_SESSIONS_UNRECOVERABLE_ERROR_INFO_H_ |
OLD | NEW |