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

Side by Side Diff: third_party/WebKit/Source/platform/inspector_protocol/ErrorSupport.h

Issue 2238423002: [DevTools] Generate all files in inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2240663003
Patch Set: Created 4 years, 4 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
OLDNEW
(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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698