| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "public/platform/WebString.h" | 34 #include "public/platform/WebString.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 WebSocketHandshakeResponseInfo::WebSocketHandshakeResponseInfo() : m_private(new
WebSocketHandshakeResponse) | 38 WebSocketHandshakeResponseInfo::WebSocketHandshakeResponseInfo() : m_private(new
WebSocketHandshakeResponse) |
| 39 { | 39 { |
| 40 } | 40 } |
| 41 | 41 |
| 42 WebSocketHandshakeResponseInfo::~WebSocketHandshakeResponseInfo() | 42 WebSocketHandshakeResponseInfo::~WebSocketHandshakeResponseInfo() |
| 43 { | 43 { |
| 44 m_private.reset(0); | |
| 45 } | 44 } |
| 46 | 45 |
| 47 void WebSocketHandshakeResponseInfo::setStatusCode(int statusCode) | 46 void WebSocketHandshakeResponseInfo::setStatusCode(int statusCode) |
| 48 { | 47 { |
| 49 m_private->setStatusCode(statusCode); | 48 m_private->setStatusCode(statusCode); |
| 50 } | 49 } |
| 51 | 50 |
| 52 void WebSocketHandshakeResponseInfo::setStatusText(const WebString& statusText) | 51 void WebSocketHandshakeResponseInfo::setStatusText(const WebString& statusText) |
| 53 { | 52 { |
| 54 m_private->setStatusText(statusText); | 53 m_private->setStatusText(statusText); |
| 55 } | 54 } |
| 56 | 55 |
| 57 void WebSocketHandshakeResponseInfo::addHeaderField(const WebString& name, const
WebString& value) | 56 void WebSocketHandshakeResponseInfo::addHeaderField(const WebString& name, const
WebString& value) |
| 58 { | 57 { |
| 59 m_private->addHeaderField(name, value); | 58 m_private->addHeaderField(name, value); |
| 60 } | 59 } |
| 61 | 60 |
| 62 void WebSocketHandshakeResponseInfo::setHeadersText(const WebString& text) | 61 void WebSocketHandshakeResponseInfo::setHeadersText(const WebString& text) |
| 63 { | 62 { |
| 64 m_private->setHeadersText(text); | 63 m_private->setHeadersText(text); |
| 65 } | 64 } |
| 66 | 65 |
| 67 } // namespace blink | 66 } // namespace blink |
| OLD | NEW |