Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: chrome/browser/sync/sessions/unrecoverable_error_info.h

Issue 8366030: Introduce the plumbing necessary to report Unrecoverable error from model safe workers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698