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

Unified Diff: third_party/WebKit/Source/core/inspector/V8InspectorStringView.h

Issue 2260233002: [DevTools] Migrate v8_inspector/public from String16 to String{View,Buffer}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using WTF::StringView Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
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..317e786d8f29987f103142b3f60b6d4eb17e14fe
--- /dev/null
+++ b/third_party/WebKit/Source/core/inspector/V8InspectorStringView.h
@@ -0,0 +1,21 @@
+// 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/v8_inspector/public/StringView.h"
+#include "wtf/text/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 StringView&);
+CORE_EXPORT String toCoreString(const v8_inspector::StringView&);
+
+} // namespace blink
+
+#endif // V8InspectorStringView_h

Powered by Google App Engine
This is Rietveld 408576698