Home | History | Annotate | Download | only in websockets

Lines Matching refs:reason

191                                              const std::string& reason) {
201 // TODO(ricea): Validate |code|? Check that |reason| is valid UTF-8?
203 SendClose(code, reason); // Sets state_ to SEND_CLOSED
361 std::string reason = "Abnormal Closure";
364 reason = closing_reason_;
366 event_interface_->OnDropChannel(code, reason);
550 std::string reason;
551 ParseClose(data_buffer, &code, &reason);
558 SendClose(code, reason); // Sets state_ to CLOSE_WAIT
561 closing_reason_ = reason;
570 closing_reason_ = reason;
618 const std::string& reason) {
628 send_reason = reason;
641 event_interface_->OnDropChannel(code, reason);
645 void WebSocketChannel::SendClose(uint16 code, const std::string& reason) {
647 // TODO(ricea): Ensure reason.length() <= 123
654 const size_t payload_length = kWebSocketCloseCodeLength + reason.length();
660 reason.begin(), reason.end(), body->data() + kWebSocketCloseCodeLength);
668 std::string* reason) {
671 reason->clear();
699 reason->swap(text);