OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ErrorSupport_h | 5 #ifndef ErrorSupport_h |
6 #define ErrorSupport_h | 6 #define ErrorSupport_h |
7 | 7 |
8 #include "platform/inspector_protocol/Platform.h" | 8 //#include "Platform.h" |
9 #include "platform/inspector_protocol/String16.h" | 9 //#include "String16.h" |
| 10 #include "{{export_macro_include}}" |
10 | 11 |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 namespace blink { | 14 namespace blink { |
14 namespace protocol { | 15 namespace protocol { |
15 | 16 |
16 using ErrorString = String16; | 17 using ErrorString = String16; |
17 | 18 |
18 class PLATFORM_EXPORT ErrorSupport { | 19 class {{export_macro}} ErrorSupport { |
19 public: | 20 public: |
20 ErrorSupport(); | 21 ErrorSupport(); |
21 ErrorSupport(String16* errorString); | 22 ErrorSupport(String16* errorString); |
22 ~ErrorSupport(); | 23 ~ErrorSupport(); |
23 | 24 |
24 void push(); | 25 void push(); |
25 void setName(const String16&); | 26 void setName(const String16&); |
26 void pop(); | 27 void pop(); |
27 void addError(const String16&); | 28 void addError(const String16&); |
28 bool hasErrors(); | 29 bool hasErrors(); |
29 String16 errors(); | 30 String16 errors(); |
30 | 31 |
31 private: | 32 private: |
32 std::vector<String16> m_path; | 33 std::vector<String16> m_path; |
33 std::vector<String16> m_errors; | 34 std::vector<String16> m_errors; |
34 String16* m_errorString; | 35 String16* m_errorString; |
35 }; | 36 }; |
36 | 37 |
37 } // namespace platform | 38 } // namespace platform |
38 } // namespace blink | 39 } // namespace blink |
39 | 40 |
40 using blink::protocol::ErrorString; | 41 using blink::protocol::ErrorString; |
41 | 42 |
42 #endif // !defined(ErrorSupport_h) | 43 #endif // !defined(ErrorSupport_h) |
OLD | NEW |