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

Unified Diff: src/inspector/public/StringView.h

Issue 2300823002: Revert of [inspector] Initial import of v8_inspector. (Closed)
Patch Set: 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
« no previous file with comments | « src/inspector/public/StringBuffer.h ('k') | src/inspector/public/V8ContextInfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/public/StringView.h
diff --git a/src/inspector/public/StringView.h b/src/inspector/public/StringView.h
deleted file mode 100644
index 1913f418462fc936b6982c48c6be9bb041c0f3ff..0000000000000000000000000000000000000000
--- a/src/inspector/public/StringView.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// 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_STRINGVIEW_H_
-#define V8_INSPECTOR_PUBLIC_STRINGVIEW_H_
-
-#include <cctype>
-#include <stdint.h>
-
-namespace v8_inspector {
-
-class PLATFORM_EXPORT StringView {
-public:
- StringView()
- : m_is8Bit(true)
- , m_length(0)
- , m_characters8(nullptr) {}
-
- StringView(const uint8_t* characters, unsigned length)
- : m_is8Bit(true)
- , m_length(length)
- , m_characters8(characters) {}
-
- StringView(const uint16_t* characters, unsigned length)
- : m_is8Bit(false)
- , m_length(length)
- , m_characters16(characters) {}
-
- bool is8Bit() const { return m_is8Bit; }
- unsigned length() const { return m_length; }
-
- // TODO(dgozman): add DCHECK(m_is8Bit) to accessors once platform can be used here.
- const uint8_t* characters8() const { return m_characters8; }
- const uint16_t* characters16() const { return m_characters16; }
-
-private:
- bool m_is8Bit;
- unsigned m_length;
- union {
- const uint8_t* m_characters8;
- const uint16_t* m_characters16;
- };
-};
-
-} // namespace v8_inspector
-
-#endif // V8_INSPECTOR_PUBLIC_STRINGVIEW_H_
« no previous file with comments | « src/inspector/public/StringBuffer.h ('k') | src/inspector/public/V8ContextInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698