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

Unified 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 side-by-side diff with in-line comments
Download patch
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..8f4a253bcf724512090c8d7fd1b9a21d5b1619c5
--- /dev/null
+++ b/chrome/browser/sync/sessions/unrecoverable_error_info.h
@@ -0,0 +1,39 @@
+// 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_
+#pragma once
+
+#include <string>
+
+#include "base/location.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace browser_sync {
+namespace sessions {
+class UnrecoverableErrorInfo {
+ public:
+ UnrecoverableErrorInfo();
+ ~UnrecoverableErrorInfo();
+
+ void Set(const tracked_objects::Location& location,
akalin 2011/10/24 23:20:49 add constructor that takes in the arguments instea
lipalani1 2011/10/25 02:29:46 Done.
+ const std::string& message);
+
+ bool IsSet() const;
+
+ const tracked_objects::Location& location() const;
+ const std::string& message() const;
+
+ private:
+ scoped_ptr<tracked_objects::Location> location_;
akalin 2011/10/24 23:20:49 no need for scoped_ptr now (Location objs are now
lipalani1 2011/10/25 02:29:46 Done.
+ std::string message_;
+
+ DISALLOW_COPY_AND_ASSIGN(UnrecoverableErrorInfo);
akalin 2011/10/24 23:20:49 since there's no more scoped_ptr, this can be assi
lipalani1 2011/10/25 02:29:46 Done.
+};
+
+} // namespace sessions
+} // namespace browser_sync
+
+#endif // CHROME_BROWSER_SYNC_SESSIONS_UNRECOVERABLE_ERROR_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698