1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
8 #include "bindings/v8/ScriptWrappable.h"
9 #include "bindings/v8/SerializedScriptValue.h"
10 #include "wtf/Forward.h"
14 class Client FINAL : public RefCounted<Client>, public ScriptWrappable {
16 static PassRefPtr<Client> create(unsigned id);
20 unsigned id() const { return m_id; }
21 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> message, const MessagePortArray*, ExceptionState&);
24 explicit Client(unsigned id);
29 } // namespace WebCore