blob: 50557c0f333b86a2a67cc5d1b15d964a3ea4c2ad [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ErrorSupport_h
#define ErrorSupport_h
//#include "Platform.h"
//#include "String16.h"
#include "{{export_macro_include}}"
#include <vector>
namespace blink {
namespace protocol {
using ErrorString = String16;
class {{export_macro}} ErrorSupport {
public:
ErrorSupport();
ErrorSupport(String16* errorString);
~ErrorSupport();
void push();
void setName(const String16&);
void pop();
void addError(const String16&);
bool hasErrors();
String16 errors();
private:
std::vector<String16> m_path;
std::vector<String16> m_errors;
String16* m_errorString;
};
} // namespace platform
} // namespace blink
using blink::protocol::ErrorString;
#endif // !defined(ErrorSupport_h)