Home | History | Annotate | Download | only in base

Lines Matching refs:string

8 #include <string>
19 std::string* mime_type);
27 std::string* mime_type);
32 std::string* mime_type);
38 const std::string& mime_type,
42 NET_EXPORT bool IsSupportedImageMimeType(const std::string& mime_type);
43 NET_EXPORT bool IsSupportedMediaMimeType(const std::string& mime_type);
44 NET_EXPORT bool IsSupportedNonImageMimeType(const std::string& mime_type);
45 NET_EXPORT bool IsUnsupportedTextMimeType(const std::string& mime_type);
46 NET_EXPORT bool IsSupportedJavascriptMimeType(const std::string& mime_type);
47 NET_EXPORT bool IsSupportedCertificateMimeType(const std::string& mime_type);
50 NET_EXPORT bool IsSupportedMimeType(const std::string& mime_type);
55 NET_EXPORT bool MatchesMimeType(const std::string& mime_type_pattern,
56 const std::string& mime_type);
59 // with no parameter, i.e. string that matches the following ABNF (see the
65 // If |top_level_type| is non-NULL, sets it to parsed top-level type string.
66 // If |subtype| is non-NULL, sets it to parsed subtype string.
67 NET_EXPORT bool ParseMimeTypeWithoutParameter(const std::string& type_string,
68 std::string* top_level_type,
69 std::string* subtype);
79 NET_EXPORT bool IsValidTopLevelMimeType(const std::string& type_string);
82 NET_EXPORT bool AreSupportedMediaCodecs(const std::vector<std::string>& codecs);
84 // Parses a codec string, populating |codecs_out| with the prefix of each codec
85 // in the string |codecs_in|. For example, passed "aaa.b.c,dd.eee", if
89 NET_EXPORT void ParseCodecString(const std::string& codecs,
90 std::vector<std::string>* codecs_out,
95 NET_EXPORT bool IsStrictMediaMimeType(const std::string& mime_type);
97 // Indicates that the MIME type and (possible codec string) are supported by the
125 const std::string& mime_type,
126 const std::vector<std::string>& codecs);
134 const std::string& mime_type,
144 // string if |mime_type| does not specifify a known media type.
147 NET_EXPORT const std::string GetIANAMediaType(const std::string& mime_type);
157 const std::string& mime_type);
160 NET_EXPORT void AddMultipartValueForUpload(const std::string& value_name,
161 const std::string& value,
162 const std::string& mime_boundary,
163 const std::string& content_type,
164 std::string* post_data);
168 const std::string& mime_boundary,
169 std::string* post_data);