mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
Everywhere: Rename {Deprecated => Byte}String
This commit un-deprecates DeprecatedString, and repurposes it as a byte string. As the null state has already been removed, there are no other particularly hairy blockers in repurposing this type as a byte string (what it _really_ is). This commit is auto-generated: $ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \ Meta Ports Ladybird Tests Kernel) $ perl -pie 's/\bDeprecatedString\b/ByteString/g; s/deprecated_string/byte_string/g' $xs $ clang-format --style=file -i \ $(git diff --name-only | grep \.cpp\|\.h) $ gn format $(git ls-files '*.gn' '*.gni')
This commit is contained in:
parent
38d62563b3
commit
5e1499d104
1615 changed files with 10257 additions and 10257 deletions
|
@ -32,7 +32,7 @@ public:
|
|||
|
||||
ReadyState ready_state();
|
||||
|
||||
DeprecatedString subprotocol_in_use();
|
||||
ByteString subprotocol_in_use();
|
||||
|
||||
// Call this to start the WebSocket connection.
|
||||
void start();
|
||||
|
@ -41,10 +41,10 @@ public:
|
|||
void send(Message const&);
|
||||
|
||||
// This can only be used if the `ready_state` is `ReadyState::Open`
|
||||
void close(u16 code = 1005, DeprecatedString const& reason = {});
|
||||
void close(u16 code = 1005, ByteString const& reason = {});
|
||||
|
||||
Function<void()> on_open;
|
||||
Function<void(u16 code, DeprecatedString reason, bool was_clean)> on_close;
|
||||
Function<void(u16 code, ByteString reason, bool was_clean)> on_close;
|
||||
Function<void(Message message)> on_message;
|
||||
|
||||
enum class Error {
|
||||
|
@ -77,7 +77,7 @@ private:
|
|||
void send_frame(OpCode, ReadonlyBytes, bool is_final);
|
||||
|
||||
void notify_open();
|
||||
void notify_close(u16 code, DeprecatedString reason, bool was_clean);
|
||||
void notify_close(u16 code, ByteString reason, bool was_clean);
|
||||
void notify_error(Error);
|
||||
void notify_message(Message);
|
||||
|
||||
|
@ -97,16 +97,16 @@ private:
|
|||
|
||||
InternalState m_state { InternalState::NotStarted };
|
||||
|
||||
DeprecatedString m_subprotocol_in_use { DeprecatedString::empty() };
|
||||
ByteString m_subprotocol_in_use { ByteString::empty() };
|
||||
|
||||
DeprecatedString m_websocket_key;
|
||||
ByteString m_websocket_key;
|
||||
bool m_has_read_server_handshake_first_line { false };
|
||||
bool m_has_read_server_handshake_upgrade { false };
|
||||
bool m_has_read_server_handshake_connection { false };
|
||||
bool m_has_read_server_handshake_accept { false };
|
||||
|
||||
u16 m_last_close_code { 1005 };
|
||||
DeprecatedString m_last_close_message;
|
||||
ByteString m_last_close_message;
|
||||
|
||||
ConnectionInfo m_connection;
|
||||
RefPtr<WebSocketImpl> m_impl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue