| OLD | NEW |
| (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 // Note: this include guard is very specific to not clash with wtf. Will be chan
ged after moving out of blink. | |
| 6 #ifndef v8_inspector_public_StringBuffer_h | |
| 7 #define v8_inspector_public_StringBuffer_h | |
| 8 | |
| 9 #include "platform/PlatformExport.h" | |
| 10 #include "platform/v8_inspector/public/StringView.h" | |
| 11 | |
| 12 #include <memory> | |
| 13 | |
| 14 namespace v8_inspector { | |
| 15 | |
| 16 class PLATFORM_EXPORT StringBuffer { | |
| 17 public: | |
| 18 virtual ~StringBuffer() { } | |
| 19 virtual const StringView& string() = 0; | |
| 20 // This method copies contents. | |
| 21 static std::unique_ptr<StringBuffer> create(const StringView&); | |
| 22 }; | |
| 23 | |
| 24 } // namespace v8_inspector | |
| 25 | |
| 26 #endif // v8_inspector_public_StringBuffer_h | |
| OLD | NEW |