Home
last modified time | relevance | path

Searched refs:content_type (Results 1 – 25 of 96) sorted by relevance

1234

/external/webrtc/webrtc/base/
Dmultipart.cc37 void MultipartStream::GetContentType(std::string* content_type) { in GetContentType() argument
38 ASSERT(NULL != content_type); in GetContentType()
39 content_type->assign(type_); in GetContentType()
40 content_type->append("; boundary="); in GetContentType()
41 content_type->append(boundary_); in GetContentType()
46 const std::string& content_type) { in AddPart() argument
47 if (!AddPart("", content_disposition, content_type)) in AddPart()
56 const std::string& content_type) { in AddPart() argument
69 if (!content_type.empty()) { in AddPart()
71 << content_type << "\r\n"; in AddPart()
[all …]
Dmultipart.h32 void GetContentType(std::string* content_type);
38 const std::string& content_type);
41 const std::string& content_type);
47 const std::string& content_type) const;
Dmultipart_unittest.cc30 std::string content_type; in TEST() local
31 multipart.GetContentType(&content_type); in TEST()
32 EXPECT_EQ(kTestContentType, content_type); in TEST()
/external/bison/src/
Dsymlist.c37 res->content_type = SYMLIST_SYMBOL; in symbol_list_sym_new()
68 res->content_type = SYMLIST_TYPE; in symbol_list_type_new()
87 res->content_type = SYMLIST_DEFAULT_TAGGED; in symbol_list_default_tagged_new()
105 res->content_type = SYMLIST_DEFAULT_TAGLESS; in symbol_list_default_tagless_new()
169 l && !(l->content_type == SYMLIST_SYMBOL && l->content.sym == NULL); in symbol_list_length()
192 || (l->content_type == SYMLIST_SYMBOL && l->content.sym == NULL)) in symbol_list_n_get()
214 aver (l->content_type == SYMLIST_SYMBOL); in symbol_list_n_type_name_get()
222 (node->content_type == SYMLIST_SYMBOL && !(node->content.sym)); in symbol_list_null()
228 switch (node->content_type) in symbol_list_destructor_set()
249 switch (node->content_type) in symbol_list_printer_set()
/external/libbrillo/brillo/http/
Dhttp_form_data.cc34 const std::string& content_type, in FormField() argument
38 content_type_{content_type},
77 const std::string& content_type, in TextFormField() argument
81 content_type, in TextFormField()
95 const std::string& content_type, in FileFormField() argument
97 : FormField{name, content_disposition, content_type, transfer_encoding}, in FileFormField()
116 const std::string& content_type, in MultiPartFormField() argument
120 content_type.empty() ? mime::multipart::kMixed : content_type, in MultiPartFormField()
160 const std::string& content_type, in AddFileField() argument
172 content_type, in AddFileField()
[all …]
Dhttp_form_data.h51 const std::string& content_type,
105 const std::string& content_type = {},
131 const std::string& content_type,
159 const std::string& content_type = {},
179 const std::string& content_type,
214 const std::string& content_type,
Dhttp_utils.cc388 auto content_type = RemoveParameters(response->GetContentType()); in ParseJsonResponse() local
389 if (content_type != brillo::mime::application::kJson && in ParseJsonResponse()
390 content_type != brillo::mime::text::kPlain) { in ParseJsonResponse()
393 "Unexpected response content type: " + content_type); in ParseJsonResponse()
/external/webrtc/webrtc/examples/peerconnection/server/
Dpeer_channel.cc113 ds->Send("200 OK", true, ds->content_type(), extra_headers, in ForwardRequestToPeer()
118 peer->QueueResponse("200 OK", ds->content_type(), extra_headers, in ForwardRequestToPeer()
132 const std::string& content_type, in QueueResponse() argument
138 bool ok = waiting_socket_->Send(status, true, content_type, extra_headers, in QueueResponse()
148 qr.content_type = content_type; in QueueResponse()
160 ds->Send(response.status, true, response.content_type, in SetWaitingSocket()
257 std::string content_type; in AddMember() local
258 std::string response = BuildResponseForNewMember(*new_guy, &content_type); in AddMember()
259 ds->Send("200 Added", true, content_type, new_guy->GetPeerIdHeader(), in AddMember()
350 std::string* content_type) { in BuildResponseForNewMember() argument
[all …]
Dpeer_channel.h48 void QueueResponse(const std::string& status, const std::string& content_type,
55 std::string status, content_type, extra_headers, data; member
114 std::string* content_type);
Ddata_socket.h83 const std::string& content_type() const { return content_type_; } in content_type() function
115 const std::string& content_type,
Ddata_socket.cc123 const std::string& content_type, in Send() argument
136 if (!content_type.empty()) in Send()
137 buffer += "Content-Type: " + content_type + "\r\n"; in Send()
/external/llvm/include/llvm/Object/
DSymbolicFile.h56 template <class content_type>
58 : public std::iterator<std::forward_iterator_tag, content_type> {
59 content_type Current;
62 content_iterator(content_type symb) : Current(std::move(symb)) {} in content_iterator()
64 const content_type *operator->() const { return &Current; }
66 const content_type &operator*() const { return Current; }
/external/libmicrohttpd/src/microhttpd/
Dpostprocessor.c160 char *content_type; member
675 try_match_header ("Content-type: ", buf, &pp->content_type); in process_multipart_headers()
773 pp->content_type, in process_value_to_boundary()
799 if ((NULL != pp->content_type) && (0 == (pp->have & NE_content_type))) in free_unmarked()
801 free (pp->content_type); in free_unmarked()
802 pp->content_type = NULL; in free_unmarked()
970 if ((pp->content_type != NULL) && in post_process_multipart()
971 (MHD_str_equal_caseless_n_ (pp->content_type, in post_process_multipart()
975 pp->nested_boundary = strstr (pp->content_type, "boundary="); in post_process_multipart()
991 free (pp->content_type); in post_process_multipart()
[all …]
Dtest_postprocessor_large.c40 const char *content_type, in value_checker() argument
49 key, filename, content_type, transfer_encoding, size, data); in value_checker()
Dtest_postprocessor.c87 const char *content_type, in value_checker() argument
97 key, filename, content_type, transfer_encoding, in value_checker()
107 (mismatch (content_type, want[idx + 2])) || in value_checker()
Dtest_postprocessor_amp.c10 const char* filename, const char* content_type, in check_post() argument
/external/webrtc/webrtc/video/
Dsend_statistics_proxy.cc35 const char* GetUmaPrefix(VideoEncoderConfig::ContentType content_type) { in GetUmaPrefix() argument
36 switch (content_type) { in GetUmaPrefix()
71 VideoEncoderConfig::ContentType content_type) in SendStatisticsProxy() argument
74 content_type_(content_type), in SendStatisticsProxy()
162 VideoEncoderConfig::ContentType content_type) { in SetContentType() argument
164 if (content_type_ != content_type) { in SetContentType()
165 uma_container_.reset(new UmaSamplesContainer(GetUmaPrefix(content_type))); in SetContentType()
166 content_type_ = content_type; in SetContentType()
Dsend_statistics_proxy.h45 VideoEncoderConfig::ContentType content_type);
68 void SetContentType(VideoEncoderConfig::ContentType content_type);
/external/boringssl/src/crypto/pkcs7/
Dpkcs7.c45 CBS in, content_info, content_type, wrapped_signed_data, signed_data; in pkcs7_parse_header() local
61 !CBS_get_asn1(&content_info, &content_type, CBS_ASN1_OBJECT)) { in pkcs7_parse_header()
65 if (!CBS_mem_equal(&content_type, kPKCS7SignedData, in pkcs7_parse_header()
/external/harfbuzz_ng/src/
Dhb-buffer.cc240 content_type = HB_BUFFER_CONTENT_TYPE_INVALID; in clear()
643 assert (content_type == HB_BUFFER_CONTENT_TYPE_UNICODE || in guess_segment_properties()
644 (!len && content_type == HB_BUFFER_CONTENT_TYPE_INVALID)); in guess_segment_properties()
835 hb_buffer_content_type_t content_type) in hb_buffer_set_content_type() argument
837 buffer->content_type = content_type; in hb_buffer_set_content_type()
854 return buffer->content_type; in hb_buffer_get_content_type()
1305 buffer->content_type = HB_BUFFER_CONTENT_TYPE_INVALID; in hb_buffer_set_length()
1470 assert (buffer->content_type == HB_BUFFER_CONTENT_TYPE_UNICODE || in hb_buffer_add_utf()
1471 (!buffer->len && buffer->content_type == HB_BUFFER_CONTENT_TYPE_INVALID)); in hb_buffer_add_utf()
1525 buffer->content_type = HB_BUFFER_CONTENT_TYPE_UNICODE; in hb_buffer_add_utf()
[all …]
Dhb-buffer-serialize.cc315 assert ((!buffer->len && buffer->content_type == HB_BUFFER_CONTENT_TYPE_INVALID) || in hb_buffer_serialize_glyphs()
316 buffer->content_type == HB_BUFFER_CONTENT_TYPE_GLYPHS); in hb_buffer_serialize_glyphs()
420 assert ((!buffer->len && buffer->content_type == HB_BUFFER_CONTENT_TYPE_INVALID) || in hb_buffer_deserialize_glyphs()
421 buffer->content_type == HB_BUFFER_CONTENT_TYPE_GLYPHS); in hb_buffer_deserialize_glyphs()
/external/swiftshader/third_party/LLVM/include/llvm/Object/
DObjectFile.h42 template<class content_type>
44 content_type Current;
46 content_iterator(content_type symb) in content_iterator()
49 const content_type* operator->() const {
53 const content_type &operator*() const {
66 content_type next; in increment()
/external/boringssl/src/crypto/pkcs8/
Dpkcs8_x509.c396 CBS content_type, wrapped_contents, contents; in PKCS12_handle_content_info() local
400 if (!CBS_get_asn1(content_info, &content_type, CBS_ASN1_OBJECT) || in PKCS12_handle_content_info()
408 if (CBS_mem_equal(&content_type, kPKCS7EncryptedData, in PKCS12_handle_content_info()
450 } else if (CBS_mem_equal(&content_type, kPKCS7Data, sizeof(kPKCS7Data))) { in PKCS12_handle_content_info()
475 CBS in, pfx, mac_data, authsafe, content_type, wrapped_authsafes, authsafes; in PKCS12_get_key_and_certs() local
526 if (!CBS_get_asn1(&authsafe, &content_type, CBS_ASN1_OBJECT) || in PKCS12_get_key_and_certs()
535 if (!CBS_mem_equal(&content_type, kPKCS7Data, sizeof(kPKCS7Data))) { in PKCS12_get_key_and_certs()
/external/webrtc/webrtc/
Dconfig.cc88 : content_type(ContentType::kRealtimeVideo), in VideoEncoderConfig()
106 switch (content_type) { in ToString()
/external/owasp/sanitizer/tools/
Dgooglecode_upload.py87 content_type, body = encode_upload_request(form_fields, file)
95 'Content-Type': content_type,

1234