Home
last modified time | relevance | path

Searched refs:FormField (Results 1 – 3 of 3) sorted by relevance

/external/libbrillo/brillo/http/
Dhttp_form_data.h33 class BRILLO_EXPORT FormField {
49 FormField(const std::string& name,
53 virtual ~FormField() = default;
91 DISALLOW_COPY_AND_ASSIGN(FormField);
95 class BRILLO_EXPORT TextFormField : public FormField {
117 class BRILLO_EXPORT FileFormField : public FormField {
151 class BRILLO_EXPORT MultiPartFormField : public FormField {
170 void AddCustomField(std::unique_ptr<FormField> field);
192 std::vector<std::unique_ptr<FormField>> parts_; // Form field list.
206 void AddCustomField(std::unique_ptr<FormField> field);
Dhttp_form_data.cc32 FormField::FormField(const std::string& name, in FormField() function in brillo::http::FormField
42 std::string FormField::GetContentDisposition() const { in GetContentDisposition()
49 std::string FormField::GetContentType() const { in GetContentType()
53 std::string FormField::GetContentHeader() const { in GetContentHeader()
79 : FormField{name, in TextFormField()
97 : FormField{name, content_disposition, content_type, transfer_encoding}, in FileFormField()
103 std::string disposition = FormField::GetContentDisposition(); in GetContentDisposition()
118 : FormField{name, in MultiPartFormField()
148 void MultiPartFormField::AddCustomField(std::unique_ptr<FormField> field) { in AddCustomField()
154 AddCustomField(std::unique_ptr<FormField>{new TextFormField{name, data}}); in AddTextField()
[all …]
Dhttp_form_data_unittest.cc19 std::string GetFormFieldData(FormField* field) { in GetFormFieldData()