1// This file is generated by Object_h.template. 2 3// Copyright 2016 The Chromium Authors. All rights reserved. 4// Use of this source code is governed by a BSD-style license that can be 5// found in the LICENSE file. 6 7#ifndef {{"_".join(config.protocol.namespace)}}_Object_h 8#define {{"_".join(config.protocol.namespace)}}_Object_h 9 10//#include "ErrorSupport.h" 11//#include "Forward.h" 12//#include "Values.h" 13 14{% for namespace in config.protocol.namespace %} 15namespace {{namespace}} { 16{% endfor %} 17 18class {{config.lib.export_macro}} Object { 19public: 20 static std::unique_ptr<Object> fromValue(protocol::Value*, ErrorSupport*); 21 explicit Object(std::unique_ptr<protocol::DictionaryValue>); 22 ~Object(); 23 24 std::unique_ptr<protocol::DictionaryValue> toValue() const; 25 std::unique_ptr<Object> clone() const; 26private: 27 std::unique_ptr<protocol::DictionaryValue> m_object; 28}; 29 30{% for namespace in config.protocol.namespace %} 31} // namespace {{namespace}} 32{% endfor %} 33 34#endif // !defined({{"_".join(config.protocol.namespace)}}_Object_h) 35