Chromium Code Reviews| 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 #pragma once | |
| 8 | |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/location.h" | |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 | |
| 14 namespace browser_sync { | |
| 15 namespace sessions { | |
| 16 class UnrecoverableErrorInfo { | |
| 17 public: | |
| 18 UnrecoverableErrorInfo(); | |
| 19 ~UnrecoverableErrorInfo(); | |
| 20 | |
| 21 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.
| |
| 22 const std::string& message); | |
| 23 | |
| 24 bool IsSet() const; | |
| 25 | |
| 26 const tracked_objects::Location& location() const; | |
| 27 const std::string& message() const; | |
| 28 | |
| 29 private: | |
| 30 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.
| |
| 31 std::string message_; | |
| 32 | |
| 33 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.
| |
| 34 }; | |
| 35 | |
| 36 } // namespace sessions | |
| 37 } // namespace browser_sync | |
| 38 | |
| 39 #endif // CHROME_BROWSER_SYNC_SESSIONS_UNRECOVERABLE_ERROR_INFO_H_ | |
| OLD | NEW |