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

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

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 2 Created 4 years, 9 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
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/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/inspector_protocol/Collections.h" 9 #include "platform/inspector_protocol/Collections.h"
10 #include "wtf/text/WTFString.h" 10 #include "platform/inspector_protocol/String16.h"
11 11
12 namespace blink { 12 namespace blink {
13 namespace protocol { 13 namespace protocol {
14 14
15 class PLATFORM_EXPORT ErrorSupport { 15 class PLATFORM_EXPORT ErrorSupport {
16 public: 16 public:
17 ErrorSupport(); 17 ErrorSupport();
18 ErrorSupport(String* errorString); 18 ErrorSupport(String16* errorString);
19 ~ErrorSupport(); 19 ~ErrorSupport();
20 20
21 void push(); 21 void push();
22 void setName(const String&); 22 void setName(const String16&);
23 void pop(); 23 void pop();
24 void addError(const String&); 24 void addError(const String16&);
25 bool hasErrors(); 25 bool hasErrors();
26 String errors(); 26 String16 errors();
27 27
28 private: 28 private:
29 protocol::Vector<String> m_path; 29 protocol::Vector<String16> m_path;
30 protocol::Vector<String> m_errors; 30 protocol::Vector<String16> m_errors;
31 String* m_errorString; 31 String16* m_errorString;
32 }; 32 };
33 33
34 } // namespace platform 34 } // namespace platform
35 } // namespace blink 35 } // namespace blink
36 36
37 #endif // !defined(ErrorSupport_h) 37 #endif // !defined(ErrorSupport_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698