| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 ErrorSupport_h | |
| 6 #define ErrorSupport_h | |
| 7 | |
| 8 #include "platform/inspector_protocol/Platform.h" | |
| 9 #include "platform/inspector_protocol/String16.h" | |
| 10 | |
| 11 #include <vector> | |
| 12 | |
| 13 namespace blink { | |
| 14 namespace protocol { | |
| 15 | |
| 16 using ErrorString = String16; | |
| 17 | |
| 18 class PLATFORM_EXPORT ErrorSupport { | |
| 19 public: | |
| 20 ErrorSupport(); | |
| 21 ErrorSupport(String16* errorString); | |
| 22 ~ErrorSupport(); | |
| 23 | |
| 24 void push(); | |
| 25 void setName(const String16&); | |
| 26 void pop(); | |
| 27 void addError(const String16&); | |
| 28 bool hasErrors(); | |
| 29 String16 errors(); | |
| 30 | |
| 31 private: | |
| 32 std::vector<String16> m_path; | |
| 33 std::vector<String16> m_errors; | |
| 34 String16* m_errorString; | |
| 35 }; | |
| 36 | |
| 37 } // namespace platform | |
| 38 } // namespace blink | |
| 39 | |
| 40 using blink::protocol::ErrorString; | |
| 41 | |
| 42 #endif // !defined(ErrorSupport_h) | |
| OLD | NEW |