| 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 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "public/platform/WebSocketHandshakeRequestInfo.h" | 32 #include "public/platform/WebSocketHandshakeRequestInfo.h" |
| 33 | 33 |
| 34 #include "platform/network/WebSocketHandshakeRequest.h" | 34 #include "platform/network/WebSocketHandshakeRequest.h" |
| 35 #include "public/platform/WebString.h" | 35 #include "public/platform/WebString.h" |
| 36 #include "public/platform/WebURL.h" | 36 #include "public/platform/WebURL.h" |
| 37 | 37 |
| 38 using blink::WebSocketHandshakeRequest; | |
| 39 | |
| 40 namespace blink { | 38 namespace blink { |
| 41 | 39 |
| 42 WebSocketHandshakeRequestInfo::WebSocketHandshakeRequestInfo() : m_private(WebSo
cketHandshakeRequest::create()) | 40 WebSocketHandshakeRequestInfo::WebSocketHandshakeRequestInfo() : m_private(WebSo
cketHandshakeRequest::create()) |
| 43 { | 41 { |
| 44 } | 42 } |
| 45 | 43 |
| 46 WebSocketHandshakeRequestInfo::~WebSocketHandshakeRequestInfo() | 44 WebSocketHandshakeRequestInfo::~WebSocketHandshakeRequestInfo() |
| 47 { | 45 { |
| 48 m_private.reset(); | 46 m_private.reset(); |
| 49 } | 47 } |
| 50 | 48 |
| 51 void WebSocketHandshakeRequestInfo::setURL(const WebURL& url) | 49 void WebSocketHandshakeRequestInfo::setURL(const WebURL& url) |
| 52 { | 50 { |
| 53 m_private->setURL(url); | 51 m_private->setURL(url); |
| 54 } | 52 } |
| 55 | 53 |
| 56 void WebSocketHandshakeRequestInfo::addHeaderField(const WebString& name, const
WebString& value) | 54 void WebSocketHandshakeRequestInfo::addHeaderField(const WebString& name, const
WebString& value) |
| 57 { | 55 { |
| 58 m_private->addAndMergeHeader(name, value); | 56 m_private->addAndMergeHeader(name, value); |
| 59 } | 57 } |
| 60 | 58 |
| 61 void WebSocketHandshakeRequestInfo::setHeadersText(const WebString& text) | 59 void WebSocketHandshakeRequestInfo::setHeadersText(const WebString& text) |
| 62 { | 60 { |
| 63 m_private->setHeadersText(text); | 61 m_private->setHeadersText(text); |
| 64 } | 62 } |
| 65 | 63 |
| 66 } // namespace blink | 64 } // namespace blink |
| OLD | NEW |