Index: third_party/WebKit/Source/core/inspector/V8InspectorStringView.h |
diff --git a/third_party/WebKit/Source/core/inspector/V8InspectorStringView.h b/third_party/WebKit/Source/core/inspector/V8InspectorStringView.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..37e344cd7feedaec642d945a2f1cbc14aa6cf26c |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/inspector/V8InspectorStringView.h |
@@ -0,0 +1,23 @@ |
+// 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 V8InspectorStringView_h |
+#define V8InspectorStringView_h |
+ |
+#include "core/CoreExport.h" |
+#include "platform/inspector_protocol/InspectorProtocol.h" |
+#include "platform/v8_inspector/public/StringView.h" |
+#include "wtf/text/WTFString.h" |
+ |
+namespace blink { |
+ |
+// Note that passed strings must outlive the resulting StringView. This implies it must not be a temporary object. |
+CORE_EXPORT v8_inspector::StringView toV8InspectorStringView(const String&); |
esprehn
2016/08/19 18:53:12
just take a WTF::StringView
dgozman
2016/08/19 20:50:12
Done.
|
+CORE_EXPORT v8_inspector::StringView toV8InspectorStringView(const String16&); |
+CORE_EXPORT v8_inspector::StringView toV8InspectorStringView(const char*); |
esprehn
2016/08/19 18:53:12
remove this one
dgozman
2016/08/19 20:50:12
Done.
|
+CORE_EXPORT String toCoreString(const v8_inspector::StringView&); |
+ |
+} // namespace blink |
+ |
+#endif // V8InspectorStringView_h |