blob: f5dd3396503efb5afc21d7c458b4a416763ae024 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright 2014 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.
#include "modules/websockets/CloseEvent.h"
namespace blink {
CloseEvent::CloseEvent(const AtomicString& type, const CloseEventInit& initializer)
: Event(type, initializer)
, m_wasClean(false)
, m_code(0)
{
if (initializer.hasWasClean())
m_wasClean = initializer.wasClean();
if (initializer.hasCode())
m_code = initializer.code();
if (initializer.hasReason())
m_reason = initializer.reason();
}
} // namespace blink
|