Index: src/inspector/public/StringBuffer.h |
diff --git a/src/inspector/public/StringBuffer.h b/src/inspector/public/StringBuffer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f229c47ada6f9454d1bc0ffa2babfa802134512c |
--- /dev/null |
+++ b/src/inspector/public/StringBuffer.h |
@@ -0,0 +1,24 @@ |
+// Copyright 2016 the V8 project 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 V8_INSPECTOR_PUBLIC_STRINGBUFFER_H_ |
+#define V8_INSPECTOR_PUBLIC_STRINGBUFFER_H_ |
+ |
+#include "src/inspector/public/StringView.h" |
+ |
+#include <memory> |
+ |
+namespace v8_inspector { |
+ |
+class PLATFORM_EXPORT StringBuffer { |
+ public: |
+ virtual ~StringBuffer() {} |
+ virtual const StringView& string() = 0; |
+ // This method copies contents. |
+ static std::unique_ptr<StringBuffer> create(const StringView&); |
+}; |
+ |
+} // namespace v8_inspector |
+ |
+#endif // V8_INSPECTOR_PUBLIC_STRINGBUFFER_H_ |