11cb0ef41Sopenharmony_ci// This file is generated by Object_h.template.
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_ci// Copyright 2016 The Chromium Authors. All rights reserved.
41cb0ef41Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be
51cb0ef41Sopenharmony_ci// found in the LICENSE file.
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ci#ifndef {{"_".join(config.protocol.namespace)}}_Object_h
81cb0ef41Sopenharmony_ci#define {{"_".join(config.protocol.namespace)}}_Object_h
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_ci//#include "ErrorSupport.h"
111cb0ef41Sopenharmony_ci//#include "Forward.h"
121cb0ef41Sopenharmony_ci//#include "Values.h"
131cb0ef41Sopenharmony_ci
141cb0ef41Sopenharmony_ci{% for namespace in config.protocol.namespace %}
151cb0ef41Sopenharmony_cinamespace {{namespace}} {
161cb0ef41Sopenharmony_ci{% endfor %}
171cb0ef41Sopenharmony_ci
181cb0ef41Sopenharmony_ciclass {{config.lib.export_macro}} Object {
191cb0ef41Sopenharmony_cipublic:
201cb0ef41Sopenharmony_ci    static std::unique_ptr<Object> fromValue(protocol::Value*, ErrorSupport*);
211cb0ef41Sopenharmony_ci    explicit Object(std::unique_ptr<protocol::DictionaryValue>);
221cb0ef41Sopenharmony_ci    ~Object();
231cb0ef41Sopenharmony_ci
241cb0ef41Sopenharmony_ci    std::unique_ptr<protocol::DictionaryValue> toValue() const;
251cb0ef41Sopenharmony_ci    std::unique_ptr<Object> clone() const;
261cb0ef41Sopenharmony_ciprivate:
271cb0ef41Sopenharmony_ci    std::unique_ptr<protocol::DictionaryValue> m_object;
281cb0ef41Sopenharmony_ci};
291cb0ef41Sopenharmony_ci
301cb0ef41Sopenharmony_ci{% for namespace in config.protocol.namespace %}
311cb0ef41Sopenharmony_ci} // namespace {{namespace}}
321cb0ef41Sopenharmony_ci{% endfor %}
331cb0ef41Sopenharmony_ci
341cb0ef41Sopenharmony_ci#endif // !defined({{"_".join(config.protocol.namespace)}}_Object_h)
35