Home | History | Annotate | Download | only in spdy

Lines Matching refs:PRIORITY

69 // Wire sizes of priority payloads.
205 // control frame header + 2 * 4 (stream IDs) + 1 (priority)
348 // Size, in bytes, of a PRIORITY frame.
505 case PRIORITY:
506 return "PRIORITY";
1028 case PRIORITY:
1399 SpdyPriority priority = 0;
1400 successful_read = reader.ReadUInt8(&priority);
1403 priority = priority >> 6;
1405 priority = priority >> 5;
1421 priority,
1466 uint32 priority = 0;
1473 priority = MapWeightToPriority(weight);
1478 // SPDY 4 reports HEADERS with PRIORITY as SYN_STREAM.
1499 priority,
1840 case PRIORITY: {
2380 // Sanitize priority.
2381 uint8 priority = syn_stream.priority();
2382 if (priority > GetLowestPriority()) {
2383 DLOG(DFATAL) << "Priority out-of-bounds.";
2384 priority = GetLowestPriority();
2395 builder.WriteUInt8(priority << ((protocol_version() <= SPDY2) ? 6 : 5));
2618 uint32 priority = headers.priority();
2620 if (priority > GetLowestPriority()) {
2621 DLOG(DFATAL) << "Priority out-of-bounds.";
2622 priority = GetLowestPriority();
2665 builder.WriteUInt8(MapPriorityToWeight(priority));
2823 SpdyFrame* SpdyFramer::SerializePriority(const SpdyPriorityIR& priority) {
2828 builder.BeginNewFrame(*this, PRIORITY, kNoFlags, priority.stream_id());
2831 uint32 parent_stream_id = priority.parent_stream_id() & 0x7fffffff;
2832 uint32 exclusive = priority.exclusive() ? 0x80000000 : 0;
2836 builder.WriteUInt8(priority.weight());
2892 virtual void VisitPriority(const SpdyPriorityIR& priority) OVERRIDE {
2893 frame_.reset(framer_->SerializePriority(priority));
3061 uint8 SpdyFramer::MapPriorityToWeight(SpdyPriority priority) {
3063 return static_cast<uint8>(kSteps * (7.f - priority));