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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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
« no previous file with comments | « chrome/browser/sync/util/time.cc ('k') | chrome/browser/sync/util/unrecoverable_error_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_UTIL_UNRECOVERABLE_ERROR_INFO_H_
6 #define CHROME_BROWSER_SYNC_UTIL_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
17 class UnrecoverableErrorInfo {
18 public:
19 UnrecoverableErrorInfo();
20 UnrecoverableErrorInfo(
21 const tracked_objects::Location& location,
22 const std::string& message);
23 ~UnrecoverableErrorInfo();
24
25 void Reset(const tracked_objects::Location& location,
26 const std::string& message);
27
28 bool IsSet() const;
29
30 const tracked_objects::Location& location() const;
31 const std::string& message() const;
32
33 private:
34 tracked_objects::Location location_;
35 std::string message_;
36 bool is_set_;
37 };
38
39 } // namespace browser_sync
40
41 #endif // CHROME_BROWSER_SYNC_UTIL_UNRECOVERABLE_ERROR_INFO_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/util/time.cc ('k') | chrome/browser/sync/util/unrecoverable_error_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698