Home
last modified time | relevance | path

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

1234

/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[],
335 const char* const extra_headers[],
357 const char* const extra_headers[],
430 SpdyFrame* ConstructSpdyGet(const char* const extra_headers[],
438 SpdyFrame* ConstructSpdyConnect(const char* const extra_headers[],
447 SpdyFrame* ConstructSpdyPush(const char* const extra_headers[],
452 SpdyFrame* ConstructSpdyPush(const char* const extra_headers[],
465 const char* const extra_headers[],
486 SpdyFrame* ConstructSpdyGetSynReply(const char* const extra_headers[],
504 const char* const* const extra_headers,
[all …]
Dspdy_test_util_common.cc116 void AppendToHeaderBlock(const char* const extra_headers[], in AppendToHeaderBlock() argument
126 DCHECK(NULL != extra_headers) << "NULL header value pair list"; in AppendToHeaderBlock()
132 DCHECK_NE('\0', *extra_headers[i * 2]) << "Empty header value pair"; in AppendToHeaderBlock()
133 this_header = extra_headers[i * 2]; in AppendToHeaderBlock()
137 this_value = extra_headers[1 + (i * 2)]; in AppendToHeaderBlock()
800 const char* const extra_headers[], in ConstructSpdyFrame() argument
805 AppendToHeaderBlock(extra_headers, extra_header_count, headers.get()); in ConstructSpdyFrame()
838 const char* const extra_headers[], in ConstructSpdyControlFrame() argument
849 AppendToHeaderBlock(extra_headers, extra_header_count, headers.get()); in ConstructSpdyControlFrame()
954 SpdyFrame* SpdyTestUtil::ConstructSpdyGet(const char* const extra_headers[], in ConstructSpdyGet() argument
[all …]
Dhpack_huffman_aggregator_test.cc93 request.extra_headers.SetHeader(HttpRequestHeaders::kReferer, in TEST_F()
102 request.extra_headers.SetHeader(HttpRequestHeaders::kReferer, in TEST_F()
107 request.extra_headers.SetHeader(HttpRequestHeaders::kReferer, in TEST_F()
/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.cc37 const std::string& extra_headers) { in WebSocketStandardRequest() argument
58 extra_headers.c_str()); in WebSocketStandardRequest()
61 std::string WebSocketStandardResponse(const std::string& extra_headers) { in WebSocketStandardResponse() argument
68 extra_headers.c_str()); in WebSocketStandardResponse()
Dwebsocket_test_util.h62 const std::string& extra_headers);
66 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.h99 const std::string& extra_headers,
125 std::string extra_headers; member
300 const std::string& extra_headers) = 0;
/external/chromium_org/third_party/libjingle/source/talk/examples/peerconnection/server/
Dpeer_channel.cc120 std::string extra_headers(GetPeerIdHeader()); in ForwardRequestToPeer() local
123 ds->Send("200 OK", true, ds->content_type(), extra_headers, in ForwardRequestToPeer()
128 peer->QueueResponse("200 OK", ds->content_type(), extra_headers, in ForwardRequestToPeer()
143 const std::string& extra_headers, in QueueResponse() argument
148 bool ok = waiting_socket_->Send(status, true, content_type, extra_headers, in QueueResponse()
159 qr.extra_headers = extra_headers; in QueueResponse()
171 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_org/chrome/browser/devtools/
Ddevtools_network_transaction.cc137 bool has_devtools_client_id = request_->extra_headers.HasHeader( in ProcessRequest()
139 bool has_devtools_request_initiator = request_->extra_headers.HasHeader( in ProcessRequest()
147 custom_request_->extra_headers.GetHeader( in ProcessRequest()
149 custom_request_->extra_headers.RemoveHeader( in ProcessRequest()
154 custom_request_->extra_headers.GetHeader( in ProcessRequest()
156 custom_request_->extra_headers.RemoveHeader(kDevToolsRequestInitiator); in ProcessRequest()
/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/content/browser/fileapi/
Dblob_url_request_job_unittest.cc185 const net::HttpRequestHeaders& extra_headers) { in TestRequest() argument
189 if (!extra_headers.IsEmpty()) in TestRequest()
190 request_->SetExtraRequestHeaders(extra_headers); in TestRequest()
360 net::HttpRequestHeaders extra_headers; in TEST_F() local
361 extra_headers.SetHeader(net::HttpRequestHeaders::kRange, in TEST_F()
365 TestRequest("GET", extra_headers); in TEST_F()
381 net::HttpRequestHeaders extra_headers; in TEST_F() local
382 extra_headers.SetHeader(net::HttpRequestHeaders::kRange, in TEST_F()
386 TestRequest("GET", extra_headers); in TEST_F()
/external/chromium_org/chrome/browser/local_discovery/
Dgcd_api_flow_impl.cc77 std::vector<std::string> extra_headers = request_->GetExtraRequestHeaders(); in CreateRequest() local
78 for (size_t i = 0; i < extra_headers.size(); ++i) in CreateRequest()
79 url_fetcher_->AddExtraRequestHeader(extra_headers[i]); in CreateRequest()
/external/chromium_org/components/data_reduction_proxy/browser/
Ddata_reduction_proxy_delegate.cc41 net::HttpRequestHeaders* extra_headers) { in OnBeforeTunnelRequest() argument
42 auth_handler_->MaybeAddProxyTunnelRequestHandler(proxy_server, extra_headers); in OnBeforeTunnelRequest()
/external/chromium_org/components/translate/core/browser/
Dtranslate_script_unittest.cc74 net::HttpRequestHeaders extra_headers; in TEST_F() local
75 fetcher->GetExtraRequestHeaders(&extra_headers); in TEST_F()
76 EXPECT_EQ(expected_extra_headers, extra_headers.ToString()); in TEST_F()
/external/chromium_org/third_party/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/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/net/url_request/
Durl_request_http_job.cc263 request_info_.extra_headers.RemoveHeader(HttpRequestHeaders::kReferer); in Start()
268 request_info_.extra_headers.SetHeader(HttpRequestHeaders::kReferer, in Start()
272 request_info_.extra_headers.SetHeaderIfMissing( in Start()
377 &request_info_.extra_headers); in StartTransaction()
418 request_, request_info_.extra_headers); in StartTransactionInternal()
483 if (!request_info_.extra_headers.HasHeader( in AddExtraHeaders()
523 request_info_.extra_headers.SetHeader( in AddExtraHeaders()
527 request_info_.extra_headers.SetHeader( in AddExtraHeaders()
530 request_info_.extra_headers.SetHeader( in AddExtraHeaders()
550 request_info_.extra_headers.SetHeaderIfMissing( in AddExtraHeaders()
[all …]
/external/chromium_org/components/web_contents_delegate_android/
Dweb_contents_delegate_android.cc91 ScopedJavaLocalRef<jstring> extra_headers = in OpenURLFromTab() local
92 ConvertUTF8ToJavaString(env, params.extra_headers); in OpenURLFromTab()
105 extra_headers.obj(), in OpenURLFromTab()
118 load_params.extra_headers = params.extra_headers; in OpenURLFromTab()
/external/chromium_org/content/browser/frame_host/
Dnavigation_controller_android.cc166 jstring extra_headers, in LoadUrl() argument
185 if (extra_headers) in LoadUrl()
186 params.extra_headers = ConvertJavaStringToUTF8(env, extra_headers); in LoadUrl()
/external/chromium_org/net/http/
Dhttp_cache_transaction.cc1042 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoGetBackendComplete()
1357 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoCreateEntryComplete()
1449 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoAddToEntryComplete()
1462 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoAddToEntryComplete()
1497 &custom_request_->extra_headers); in DoCompletePartialCacheValidation()
2000 if (request_->extra_headers.HasHeader(HttpRequestHeaders::kRange)) in SetRequest()
2004 if (HeaderMatches(request_->extra_headers, kSpecialHeaders[i].search)) { in SetRequest()
2015 if (request_->extra_headers.GetHeader( in SetRequest()
2043 if (request_->method == "GET" && partial_->Init(request_->extra_headers)) { in SetRequest()
2047 custom_request_->extra_headers.RemoveHeader(HttpRequestHeaders::kRange); in SetRequest()
[all …]

1234