| 838 | } |
| 839 | |
| 840 | void emitFrameDebugString(const std::string& cls, const FrameDecl& frame) { |
| 841 | out_ << " std::string DebugString() const {\n" |
| 842 | " std::ostringstream os;\n" |
| 843 | << " os << \"" << cls << "{\";\n"; |
| 844 | for (size_t i = 0; i < frame.fields.size(); ++i) { |
| 845 | if (i) out_ << " os << ' ';\n"; |
| 846 | out_ << " detail::AppendField(os, \"" << frame.fields[i].name |
| 847 | << "\", " << frame.fields[i].name << "());\n"; |
| 848 | } |
| 849 | out_ << " os << '}';\n" |
| 850 | " return os.str();\n" |
| 851 | " }\n"; |
| 852 | } |
| 853 | |
| 854 | void emitIPCInterfaceCall() { |
| 855 | out_ << "class IPCInterfaceCall {\n" |