mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -53,7 +53,7 @@ RefPtr<Protocol::WebSocket> WebSocketClientManager::connect(const AK::URL& url,
|
|||
}
|
||||
|
||||
// https://websockets.spec.whatwg.org/#dom-websocket-websocket
|
||||
DOM::ExceptionOr<NonnullRefPtr<WebSocket>> WebSocket::create_with_global_object(Bindings::WindowObject& window, const String& url)
|
||||
DOM::ExceptionOr<NonnullRefPtr<WebSocket>> WebSocket::create_with_global_object(Bindings::WindowObject& window, String const& url)
|
||||
{
|
||||
AK::URL url_record(url);
|
||||
if (!url_record.is_valid())
|
||||
|
@ -169,7 +169,7 @@ DOM::ExceptionOr<void> WebSocket::close(Optional<u16> code, Optional<String> rea
|
|||
}
|
||||
|
||||
// https://websockets.spec.whatwg.org/#dom-websocket-send
|
||||
DOM::ExceptionOr<void> WebSocket::send(const String& data)
|
||||
DOM::ExceptionOr<void> WebSocket::send(String const& data)
|
||||
{
|
||||
auto state = ready_state();
|
||||
if (state == WebSocket::ReadyState::Connecting)
|
||||
|
|
|
@ -64,7 +64,7 @@ public:
|
|||
return adopt_ref(*new WebSocket(window, url));
|
||||
}
|
||||
|
||||
static DOM::ExceptionOr<NonnullRefPtr<WebSocket>> create_with_global_object(Bindings::WindowObject& window, const String& url);
|
||||
static DOM::ExceptionOr<NonnullRefPtr<WebSocket>> create_with_global_object(Bindings::WindowObject& window, String const& url);
|
||||
|
||||
virtual ~WebSocket() override;
|
||||
|
||||
|
@ -84,11 +84,11 @@ public:
|
|||
String extensions() const;
|
||||
String protocol() const;
|
||||
|
||||
const String& binary_type() { return m_binary_type; };
|
||||
void set_binary_type(const String& type) { m_binary_type = type; };
|
||||
String const& binary_type() { return m_binary_type; };
|
||||
void set_binary_type(String const& type) { m_binary_type = type; };
|
||||
|
||||
DOM::ExceptionOr<void> close(Optional<u16> code, Optional<String> reason);
|
||||
DOM::ExceptionOr<void> send(const String& data);
|
||||
DOM::ExceptionOr<void> send(String const& data);
|
||||
|
||||
private:
|
||||
virtual void ref_event_target() override { ref(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue