Home
last modified time | relevance | path

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

1234

/external/chromium/net/spdy/
Dspdy_test_util.h74 void AppendHeadersToSpdyFrame(const char* const extra_headers[],
117 const char* const extra_headers[],
123 spdy::SpdyFrame* ConstructSpdyControlFrame(const char* const extra_headers[],
132 spdy::SpdyFrame* ConstructSpdyControlFrame(const char* const extra_headers[],
148 int ConstructSpdyReplyString(const char* const extra_headers[],
181 int ConstructSpdyHeader(const char* const extra_headers[],
201 spdy::SpdyFrame* ConstructSpdyGet(const char* const extra_headers[],
212 spdy::SpdyFrame* ConstructSpdyGet(const char* const extra_headers[],
220 spdy::SpdyFrame* ConstructSpdyConnect(const char* const extra_headers[],
228 spdy::SpdyFrame* ConstructSpdyPush(const char* const extra_headers[],
[all …]
Dspdy_test_util.cc74 void AppendHeadersToSpdyFrame(const char* const extra_headers[], in AppendHeadersToSpdyFrame() argument
84 DCHECK(NULL != extra_headers) << "NULL header value pair list"; in AppendHeadersToSpdyFrame()
90 DCHECK_NE('\0', *extra_headers[i * 2]) << "Empty header value pair"; in AppendHeadersToSpdyFrame()
91 this_header = extra_headers[i * 2]; in AppendHeadersToSpdyFrame()
95 this_value = extra_headers[1 + (i * 2)]; in AppendHeadersToSpdyFrame()
150 const char* const extra_headers[], in ConstructSpdyPacket() argument
157 AppendHeadersToSpdyFrame(extra_headers, extra_header_count, &headers); in ConstructSpdyPacket()
232 int ConstructSpdyHeader(const char* const extra_headers[], in ConstructSpdyHeader() argument
243 DCHECK(NULL != extra_headers) << "NULL extra headers pointer"; in ConstructSpdyHeader()
248 this_header = extra_headers[index * 2]; in ConstructSpdyHeader()
[all …]
/external/chromium_org/content/browser/streams/
Dstream_url_request_job_unittest.cc74 const net::HttpRequestHeaders& extra_headers, in TestRequest() argument
81 if (!extra_headers.IsEmpty()) in TestRequest()
82 request_->SetExtraRequestHeaders(extra_headers); in TestRequest()
157 net::HttpRequestHeaders extra_headers; in TEST_F() local
158 extra_headers.SetHeader(net::HttpRequestHeaders::kRange, in TEST_F()
160 TestRequest("GET", kStreamURL, extra_headers, in TEST_F()
174 net::HttpRequestHeaders extra_headers; in TEST_F() local
175 extra_headers.SetHeader(net::HttpRequestHeaders::kRange, in TEST_F()
177 TestRequest("GET", kStreamURL, extra_headers, 405, std::string()); in TEST_F()
/external/chromium_org/net/spdy/
Dspdy_test_util_common.h82 void AppendToHeaderBlock(const char* const extra_headers[],
325 const char* const extra_headers[],
347 const char* const extra_headers[],
414 SpdyFrame* ConstructSpdyGet(const char* const extra_headers[],
422 SpdyFrame* ConstructSpdyConnect(const char* const extra_headers[],
431 SpdyFrame* ConstructSpdyPush(const char* const extra_headers[],
436 SpdyFrame* ConstructSpdyPush(const char* const extra_headers[],
445 const char* const extra_headers[],
452 SpdyFrame* ConstructSpdyGetSynReply(const char* const extra_headers[],
470 const char* const* const extra_headers,
[all …]
Dspdy_test_util_common.cc112 void AppendToHeaderBlock(const char* const extra_headers[], in AppendToHeaderBlock() argument
122 DCHECK(NULL != extra_headers) << "NULL header value pair list"; in AppendToHeaderBlock()
128 DCHECK_NE('\0', *extra_headers[i * 2]) << "Empty header value pair"; in AppendToHeaderBlock()
129 this_header = extra_headers[i * 2]; in AppendToHeaderBlock()
133 this_value = extra_headers[1 + (i * 2)]; in AppendToHeaderBlock()
780 const char* const extra_headers[], in ConstructSpdyFrame() argument
785 AppendToHeaderBlock(extra_headers, extra_header_count, headers.get()); in ConstructSpdyFrame()
818 const char* const extra_headers[], in ConstructSpdyControlFrame() argument
829 AppendToHeaderBlock(extra_headers, extra_header_count, headers.get()); in ConstructSpdyControlFrame()
912 SpdyFrame* SpdyTestUtil::ConstructSpdyGet(const char* const extra_headers[], in ConstructSpdyGet() argument
[all …]
/external/chromium_org/net/websockets/
Dwebsocket_handshake_handler_test.cc192 EXPECT_FALSE(request_info.extra_headers.HasHeader("Upgrade")); in TEST()
193 EXPECT_FALSE(request_info.extra_headers.HasHeader("Connection")); in TEST()
194 EXPECT_FALSE(request_info.extra_headers.HasHeader("Sec-WebSocket-Key")); in TEST()
196 EXPECT_TRUE(request_info.extra_headers.GetHeader("Host", &value)); in TEST()
198 EXPECT_TRUE(request_info.extra_headers.GetHeader("Sec-WebSocket-Origin", in TEST()
201 EXPECT_TRUE(request_info.extra_headers.GetHeader("Sec-WebSocket-Protocol", in TEST()
Dwebsocket_test_util.cc32 const std::string& extra_headers) { in WebSocketStandardRequest() argument
50 extra_headers.c_str()); in WebSocketStandardRequest()
53 std::string WebSocketStandardResponse(const std::string& extra_headers) { in WebSocketStandardResponse() argument
60 extra_headers.c_str()); in WebSocketStandardResponse()
Dwebsocket_test_util.h51 const std::string& extra_headers);
55 extern std::string WebSocketStandardResponse(const std::string& extra_headers);
Dwebsocket_handshake_handler.cc207 request_info.extra_headers.Clear(); in GetRequestInfo()
208 request_info.extra_headers.AddHeadersFromString(headers_); in GetRequestInfo()
210 request_info.extra_headers.RemoveHeader(websockets::kUpgrade); in GetRequestInfo()
211 request_info.extra_headers.RemoveHeader(HttpRequestHeaders::kConnection); in GetRequestInfo()
214 bool header_present = request_info.extra_headers.GetHeader( in GetRequestInfo()
217 request_info.extra_headers.RemoveHeader(websockets::kSecWebSocketKey); in GetRequestInfo()
/external/chromium_org/content/public/browser/
Dnavigation_controller.cc34 extra_headers(other.extra_headers), in LoadURLParams()
54 extra_headers = other.extra_headers; in operator =()
Dnavigation_controller.h104 const std::string& extra_headers,
130 std::string extra_headers; member
305 const std::string& extra_headers) = 0;
/external/chromium_org/third_party/libjingle/source/talk/examples/peerconnection/server/
Dpeer_channel.cc114 std::string extra_headers(GetPeerIdHeader()); in ForwardRequestToPeer() local
117 ds->Send("200 OK", true, ds->content_type(), extra_headers, in ForwardRequestToPeer()
122 peer->QueueResponse("200 OK", ds->content_type(), extra_headers, in ForwardRequestToPeer()
137 const std::string& extra_headers, in QueueResponse() argument
142 bool ok = waiting_socket_->Send(status, true, content_type, extra_headers, in QueueResponse()
153 qr.extra_headers = extra_headers; in QueueResponse()
165 response.extra_headers, response.data); in SetWaitingSocket()
Dpeer_channel.h66 const std::string& extra_headers, const std::string& data);
72 std::string status, content_type, extra_headers, data; member
Ddata_socket.cc141 const std::string& extra_headers, in Send() argument
159 if (!extra_headers.empty()) { in Send()
160 buffer += extra_headers; in Send()
/external/chromium/net/websockets/
Dwebsocket_handshake_handler_unittest.cc204 EXPECT_FALSE(request_info.extra_headers.HasHeader("Upgrade")); in TEST()
205 EXPECT_FALSE(request_info.extra_headers.HasHeader("Connection")); in TEST()
206 EXPECT_FALSE(request_info.extra_headers.HasHeader("Sec-WebSocket-Key1")); in TEST()
207 EXPECT_FALSE(request_info.extra_headers.HasHeader("Sec-WebSocket-Key2")); in TEST()
209 EXPECT_TRUE(request_info.extra_headers.GetHeader("Host", &value)); in TEST()
211 EXPECT_TRUE(request_info.extra_headers.GetHeader("Origin", &value)); in TEST()
213 EXPECT_TRUE(request_info.extra_headers.GetHeader("Sec-WebSocket-Protocol", in TEST()
Dwebsocket_handshake_handler.cc199 request_info.extra_headers.Clear(); in GetRequestInfo()
200 request_info.extra_headers.AddHeadersFromString(headers_); in GetRequestInfo()
202 request_info.extra_headers.RemoveHeader("Upgrade"); in GetRequestInfo()
203 request_info.extra_headers.RemoveHeader("Connection"); in GetRequestInfo()
207 request_info.extra_headers.GetHeader("Sec-WebSocket-Key1", &key); in GetRequestInfo()
208 request_info.extra_headers.RemoveHeader("Sec-WebSocket-Key1"); in GetRequestInfo()
211 request_info.extra_headers.GetHeader("Sec-WebSocket-Key2", &key); in GetRequestInfo()
212 request_info.extra_headers.RemoveHeader("Sec-WebSocket-Key2"); in GetRequestInfo()
/external/chromium_org/content/browser/fileapi/
Dblob_url_request_job_unittest.cc241 const net::HttpRequestHeaders& extra_headers) { in TestRequest() argument
245 if (!extra_headers.IsEmpty()) in TestRequest()
246 request_->SetExtraRequestHeaders(extra_headers); in TestRequest()
400 net::HttpRequestHeaders extra_headers; in TEST_F() local
401 extra_headers.SetHeader(net::HttpRequestHeaders::kRange, in TEST_F()
405 TestRequest("GET", extra_headers); in TEST_F()
412 net::HttpRequestHeaders extra_headers; in TEST_F() local
413 extra_headers.SetHeader(net::HttpRequestHeaders::kRange, in TEST_F()
417 TestRequest("GET", extra_headers); in TEST_F()
/external/chromium_org/content/public/renderer/
Dnavigation_state.h113 void set_extra_headers(const std::string& extra_headers) { in set_extra_headers() argument
114 extra_headers_ = extra_headers; in set_extra_headers()
116 const std::string& extra_headers() { return extra_headers_; } in extra_headers() function
/external/chromium_org/chrome/browser/translate/
Dtranslate_script_unittest.cc70 net::HttpRequestHeaders extra_headers; in TEST_F() local
71 fetcher->GetExtraRequestHeaders(&extra_headers); in TEST_F()
72 EXPECT_EQ(expected_extra_headers, extra_headers.ToString()); in TEST_F()
/external/speex/libspeex/
Dspeex_header.c116 header->extra_headers = 0; in speex_init_header()
139 ENDIAN_SWITCH(le_header->extra_headers); in speex_header_to_packet()
179 ENDIAN_SWITCH(le_header->extra_headers); in speex_packet_to_header()
/external/chromium_org/chrome_frame/
Dplugin_url_request.cc24 const std::string& referrer, const std::string& extra_headers, in Initialize() argument
32 extra_headers_ = extra_headers; in Initialize()
/external/chromium/net/http/
Dhttp_cache_transaction.cc617 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoGetBackendComplete()
821 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoCreateEntryComplete()
892 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoAddToEntryComplete()
909 HttpRequestHeaders headers = request_->extra_headers; in DoNotifyBeforeSendHeaders()
978 &custom_request_->extra_headers); in DoCompletePartialCacheValidation()
1379 if (request_->extra_headers.HasHeader(HttpRequestHeaders::kRange)) in SetRequest()
1383 if (HeaderMatches(request_->extra_headers, kSpecialHeaders[i].search)) { in SetRequest()
1394 if (request_->extra_headers.GetHeader( in SetRequest()
1421 if (partial_->Init(request_->extra_headers)) { in SetRequest()
1425 custom_request_->extra_headers.RemoveHeader(HttpRequestHeaders::kRange); in SetRequest()
[all …]
/external/chromium_org/net/url_request/
Durl_request_http_job.cc343 request_info_.extra_headers.RemoveHeader(HttpRequestHeaders::kReferer); in Start()
348 request_info_.extra_headers.SetHeader(HttpRequestHeaders::kReferer, in Start()
352 request_info_.extra_headers.SetHeaderIfMissing( in Start()
447 &request_info_.extra_headers); in StartTransaction()
488 request_, request_info_.extra_headers); in StartTransactionInternal()
545 if (!request_info_.extra_headers.HasHeader( in AddExtraHeaders()
580 request_info_.extra_headers.SetHeader( in AddExtraHeaders()
584 request_info_.extra_headers.SetHeader( in AddExtraHeaders()
587 request_info_.extra_headers.SetHeader( in AddExtraHeaders()
607 request_info_.extra_headers.SetHeaderIfMissing( in AddExtraHeaders()
[all …]
/external/chromium_org/net/http/
Dhttp_cache_transaction.cc842 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoGetBackendComplete()
1138 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoCreateEntryComplete()
1203 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoAddToEntryComplete()
1238 &custom_request_->extra_headers); in DoCompletePartialCacheValidation()
1696 if (request_->extra_headers.HasHeader(HttpRequestHeaders::kRange)) in SetRequest()
1700 if (HeaderMatches(request_->extra_headers, kSpecialHeaders[i].search)) { in SetRequest()
1711 if (request_->extra_headers.GetHeader( in SetRequest()
1739 if (request_->method == "GET" && partial_->Init(request_->extra_headers)) { in SetRequest()
1743 custom_request_->extra_headers.RemoveHeader(HttpRequestHeaders::kRange); in SetRequest()
1745 partial_->SetHeaders(custom_request_->extra_headers); in SetRequest()
[all …]
/external/chromium_org/content/browser/frame_host/
Dnavigation_entry_impl.h133 void set_extra_headers(const std::string& extra_headers) { in NON_EXPORTED_BASE()
134 extra_headers_ = extra_headers; in NON_EXPORTED_BASE()
136 const std::string& extra_headers() const { in NON_EXPORTED_BASE()

1234