/external/chromium_org/components/data_reduction_proxy/browser/ |
D | data_reduction_proxy_tamper_detection_unittest.cc | 243 std::string raw_headers(test[i].raw_header); in TEST_F() local 244 HeadersToRaw(&raw_headers); in TEST_F() 246 new net::HttpResponseHeaders(raw_headers)); in TEST_F() 367 std::string raw_headers(test[i].raw_header); in TEST_F() local 368 HeadersToRaw(&raw_headers); in TEST_F() 370 new net::HttpResponseHeaders(raw_headers)); in TEST_F() 500 std::string raw_headers(test[i].raw_header); in TEST_F() local 501 HeadersToRaw(&raw_headers); in TEST_F() 503 new net::HttpResponseHeaders(raw_headers)); in TEST_F() 576 std::string raw_headers(test[i].raw_header); in TEST_F() local [all …]
|
D | data_reduction_proxy_usage_stats_unittest.cc | 300 std::string raw_headers(test_cases[i].headers); in TEST_F() local 301 HeadersToRaw(&raw_headers); in TEST_F() 303 new net::HttpResponseHeaders(raw_headers)); in TEST_F() 413 std::string raw_headers(test_cases[i].headers); in TEST_F() local 414 HeadersToRaw(&raw_headers); in TEST_F() 418 raw_headers)); in TEST_F()
|
/external/chromium_org/chrome/renderer/ |
D | security_filter_peer.cc | 107 std::string raw_headers; in ProcessResponseInfo() local 108 raw_headers.append("HTTP/1.1 200 OK"); in ProcessResponseInfo() 109 raw_headers.push_back('\0'); in ProcessResponseInfo() 114 raw_headers.append("cache-control: no-cache"); in ProcessResponseInfo() 115 raw_headers.push_back('\0'); in ProcessResponseInfo() 117 raw_headers.append("content-type: "); in ProcessResponseInfo() 118 raw_headers.append(mime_type); in ProcessResponseInfo() 119 raw_headers.push_back('\0'); in ProcessResponseInfo() 121 raw_headers.push_back('\0'); in ProcessResponseInfo() 123 new net::HttpResponseHeaders(raw_headers); in ProcessResponseInfo()
|
/external/chromium_org/net/spdy/ |
D | spdy_http_utils.cc | 61 std::string raw_headers(version); in SpdyHeadersToHttpResponse() local 62 raw_headers.push_back(' '); in SpdyHeadersToHttpResponse() 63 raw_headers.append(status); in SpdyHeadersToHttpResponse() 64 raw_headers.push_back('\0'); in SpdyHeadersToHttpResponse() 85 raw_headers.append(it->first.substr(1)); in SpdyHeadersToHttpResponse() 87 raw_headers.append(it->first); in SpdyHeadersToHttpResponse() 88 raw_headers.push_back(':'); in SpdyHeadersToHttpResponse() 89 raw_headers.append(tval); in SpdyHeadersToHttpResponse() 90 raw_headers.push_back('\0'); in SpdyHeadersToHttpResponse() 95 response->headers = new HttpResponseHeaders(raw_headers); in SpdyHeadersToHttpResponse()
|
/external/chromium_org/extensions/browser/ |
D | extension_protocols.cc | 543 std::string raw_headers; in BuildHttpHeaders() local 544 raw_headers.append("HTTP/1.1 200 OK"); in BuildHttpHeaders() 546 raw_headers.append(1, '\0'); in BuildHttpHeaders() 547 raw_headers.append("Content-Security-Policy: "); in BuildHttpHeaders() 548 raw_headers.append(content_security_policy); in BuildHttpHeaders() 552 raw_headers.append(1, '\0'); in BuildHttpHeaders() 553 raw_headers.append("Access-Control-Allow-Origin: *"); in BuildHttpHeaders() 564 raw_headers.append(1, '\0'); in BuildHttpHeaders() 565 raw_headers.append("ETag: \""); in BuildHttpHeaders() 566 raw_headers.append(etag); in BuildHttpHeaders() [all …]
|
/external/chromium_org/net/test/url_request/ |
D | url_request_mock_http_job.cc | 83 std::string raw_headers; in DoFileIO() local 84 base::ReadFileToString(header_file, &raw_headers); in DoFileIO() 85 return raw_headers; in DoFileIO() 174 void URLRequestMockHTTPJob::GetRawHeaders(std::string raw_headers) { in GetRawHeaders() argument 176 ReplaceSubstringsAfterOffset(&raw_headers, 0, "\r\n", "\n"); in GetRawHeaders() 178 ReplaceSubstringsAfterOffset(&raw_headers, 0, "\n", std::string("\0", 1)); in GetRawHeaders() 179 raw_headers_ = raw_headers; in GetRawHeaders()
|
D | url_request_mock_http_job.h | 81 void GetRawHeaders(std::string raw_headers);
|
/external/chromium_org/content/test/net/ |
D | url_request_abort_on_end_job.cc | 55 std::string raw_headers; in GetResponseInfoConst() local 58 raw_headers.append( in GetResponseInfoConst() 65 ReplaceSubstringsAfterOffset(&raw_headers, 0, "\n", std::string("\0", 1)); in GetResponseInfoConst() 66 info->headers = new net::HttpResponseHeaders(raw_headers); in GetResponseInfoConst()
|
D | url_request_slow_download_job.cc | 242 std::string raw_headers; in GetResponseInfoConst() local 247 raw_headers.append( in GetResponseInfoConst() 251 raw_headers.append( in GetResponseInfoConst() 257 raw_headers.append(base::StringPrintf( in GetResponseInfoConst() 264 ReplaceSubstringsAfterOffset(&raw_headers, 0, "\n", std::string("\0", 1)); in GetResponseInfoConst() 265 info->headers = new net::HttpResponseHeaders(raw_headers); in GetResponseInfoConst()
|
/external/chromium_org/net/http/ |
D | http_util.cc | 583 std::string raw_headers; in AssembleRawHeaders() local 584 raw_headers.reserve(input_len); in AssembleRawHeaders() 596 raw_headers.append(input_begin, status_line_end); in AssembleRawHeaders() 614 raw_headers.push_back(' '); in AssembleRawHeaders() 615 raw_headers.append(FindFirstNonLWS(line_begin, line_end), line_end); in AssembleRawHeaders() 618 raw_headers.push_back('\n'); in AssembleRawHeaders() 621 raw_headers.append(line_begin, line_end); in AssembleRawHeaders() 628 raw_headers.append("\n\n", 2); in AssembleRawHeaders() 633 raw_headers.erase(std::remove(raw_headers.begin(), raw_headers.end(), '\0'), in AssembleRawHeaders() 634 raw_headers.end()); in AssembleRawHeaders() [all …]
|
D | http_response_headers_unittest.cc | 20 const char* raw_headers; member 47 std::string raw_headers("HTTP/1.1 200 OK\n"); in InitializeHeadersWithCacheControl() local 48 raw_headers += "Cache-Control: "; in InitializeHeadersWithCacheControl() 49 raw_headers += cache_control; in InitializeHeadersWithCacheControl() 50 raw_headers += "\n"; in InitializeHeadersWithCacheControl() 51 HeadersToRaw(&raw_headers); in InitializeHeadersWithCacheControl() 52 headers_ = new net::HttpResponseHeaders(raw_headers); in InitializeHeadersWithCacheControl() 93 std::string raw_headers(test.raw_headers); in TEST_P() local 94 HeadersToRaw(&raw_headers); in TEST_P() 99 new net::HttpResponseHeaders(raw_headers)); in TEST_P() [all …]
|
D | proxy_client_socket.cc | 91 std::string raw_headers = in SanitizeProxyRedirect() local 94 response->headers = new HttpResponseHeaders(raw_headers); in SanitizeProxyRedirect()
|
D | http_response_headers.h | 56 explicit HttpResponseHeaders(const std::string& raw_headers); 285 const std::string& raw_headers() const { return raw_headers_; } in raw_headers() function 347 void MergeWithHeaders(const std::string& raw_headers,
|
D | http_cache_unittest.cc | 425 std::string raw_headers(net::HttpUtil::AssembleRawHeaders(response.data(), in Verify206Response() local 428 new net::HttpResponseHeaders(raw_headers)); in Verify206Response() 444 void CreateTruncatedEntry(std::string raw_headers, MockHttpCache* cache) { in CreateTruncatedEntry() argument 450 raw_headers = net::HttpUtil::AssembleRawHeaders(raw_headers.data(), in CreateTruncatedEntry() 451 raw_headers.size()); in CreateTruncatedEntry() 456 response.headers = new net::HttpResponseHeaders(raw_headers); in CreateTruncatedEntry() 3136 std::string raw_headers("HTTP/1.1 200 OK\n" in TEST() local 3141 CreateTruncatedEntry(raw_headers, &cache); in TEST() 4357 std::string raw_headers(kRangeGET_TransactionOK.status); in TEST() local 4358 raw_headers.append("\n"); in TEST() [all …]
|
D | http_response_headers.cc | 270 void HttpResponseHeaders::MergeWithHeaders(const std::string& raw_headers, in MergeWithHeaders() argument 272 std::string new_raw_headers(raw_headers); in MergeWithHeaders() 1384 std::string raw_headers; in FromNetLogParam() local 1392 raw_headers.append(header_line); in FromNetLogParam() 1393 raw_headers.push_back('\0'); in FromNetLogParam() 1395 raw_headers.push_back('\0'); in FromNetLogParam() 1396 *http_response_headers = new HttpResponseHeaders(raw_headers); in FromNetLogParam()
|
D | http_stream_parser.cc | 31 std::string raw_headers = headers.raw_headers(); in GetResponseHeaderLines() local 32 const char* null_separated_headers = raw_headers.c_str(); in GetResponseHeaderLines()
|
/external/chromium_org/components/captive_portal/ |
D | captive_portal_testing_utils.cc | 17 std::string raw_headers = net::HttpUtil::AssembleRawHeaders( in CreateResponseHeaders() local 19 return new net::HttpResponseHeaders(raw_headers); in CreateResponseHeaders()
|
/external/chromium_org/content/child/ |
D | resource_dispatcher_unittest.cc | 248 std::string raw_headers(kTestRedirectHeaders); in NotifyReceivedRedirect() local 249 std::replace(raw_headers.begin(), raw_headers.end(), '\n', '\0'); in NotifyReceivedRedirect() 250 head.headers = new net::HttpResponseHeaders(raw_headers); in NotifyReceivedRedirect() 262 std::string raw_headers(kTestPageHeaders); in NotifyReceivedResponse() local 263 std::replace(raw_headers.begin(), raw_headers.end(), '\n', '\0'); in NotifyReceivedResponse() 264 head.headers = new net::HttpResponseHeaders(raw_headers); in NotifyReceivedResponse()
|
/external/chromium_org/content/browser/appcache/ |
D | appcache_response_unittest.cc | 159 std::string raw_headers(kHttpHeaders, arraysize(kHttpHeaders)); in WriteBasicResponse() local 161 MakeHttpResponseInfo(raw_headers), body.get(), strlen(kHttpBody)); in WriteBasicResponse() 242 net::HttpResponseInfo* MakeHttpResponseInfo(const std::string& raw_headers) { in MakeHttpResponseInfo() argument 247 info->headers = new net::HttpResponseHeaders(raw_headers); in MakeHttpResponseInfo() 380 std::string raw_headers(kHttpHeaders, arraysize(kHttpHeaders)); in AmountWritten() local 381 net::HttpResponseInfo* head = MakeHttpResponseInfo(raw_headers); in AmountWritten()
|
D | appcache_url_request_job_unittest.cc | 298 std::string raw_headers(kHttpBasicHeaders, arraysize(kHttpBasicHeaders)); in WriteBasicResponse() local 300 MakeHttpResponseInfo(raw_headers), body.get(), strlen(kHttpBasicBody)); in WriteBasicResponse() 370 net::HttpResponseInfo* MakeHttpResponseInfo(const std::string& raw_headers) { in MakeHttpResponseInfo() argument 375 info->headers = new net::HttpResponseHeaders(raw_headers); in MakeHttpResponseInfo() 657 std::string raw_headers(kHttpHeaders, arraysize(kHttpHeaders)); in WriteLargeResponse() local 659 MakeHttpResponseInfo(raw_headers), body.get(), kBlockSize * 3); in WriteLargeResponse()
|
/external/chromium_org/net/websockets/ |
D | websocket_handshake_handler_test.cc | 211 std::string raw_headers = in TEST() local 215 response_info.headers = new HttpResponseHeaders(raw_headers); in TEST()
|
/external/chromium_org/net/quic/ |
D | quic_in_memory_cache.cc | 137 string raw_headers = in Initialize() local 141 new HttpResponseHeaders(raw_headers); in Initialize()
|
/external/chromium_org/content/browser/streams/ |
D | stream_handle_impl.cc | 39 new net::HttpResponseHeaders(response_headers->raw_headers()); in StreamHandleImpl()
|
/external/chromium_org/content/browser/loader/ |
D | resource_dispatcher_host_unittest.cc | 1934 std::string raw_headers("HTTP/1.1 200 OK\n\n"); in TEST_F() local 1936 SetResponse(raw_headers, response_data); in TEST_F() 1956 std::string raw_headers("HTTP/1.1 200 OK\n" in TEST_F() local 1959 SetResponse(raw_headers, response_data); in TEST_F() 2037 std::string raw_headers("HTTP/1.1 403 Forbidden\n" in TEST_F() local 2041 SetResponse(raw_headers, response_data); in TEST_F() 2076 std::string raw_headers("HTTP\n" in TEST_F() local 2087 SetResponse(raw_headers, response_data); in TEST_F() 2116 std::string raw_headers("HTTP\n" in TEST_F() local 2122 SetResponse(raw_headers, response_data); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/dial/ |
D | dial_service.cc | 329 std::string raw_headers = in ParseResponse() local 331 VLOG(3) << "raw_headers: " << raw_headers << "\n"; in ParseResponse() 333 new HttpResponseHeaders(raw_headers); in ParseResponse()
|