| Index: third_party/WebKit/Source/platform/exported/WebSocketHandshakeRequestInfo.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebColorSuggestion.cpp b/third_party/WebKit/Source/platform/exported/WebSocketHandshakeRequestInfo.cpp
|
| similarity index 69%
|
| copy from third_party/WebKit/Source/web/WebColorSuggestion.cpp
|
| copy to third_party/WebKit/Source/platform/exported/WebSocketHandshakeRequestInfo.cpp
|
| index 52a3745ed7768e813f666ea5cdd5f0a924e913d4..8b4e7a518178908d03bb5e2a4e20a78cc398739a 100644
|
| --- a/third_party/WebKit/Source/web/WebColorSuggestion.cpp
|
| +++ b/third_party/WebKit/Source/platform/exported/WebSocketHandshakeRequestInfo.cpp
|
| @@ -28,25 +28,36 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#include "public/web/WebColorSuggestion.h"
|
| +#include "public/platform/modules/websockets/WebSocketHandshakeRequestInfo.h"
|
|
|
| -#include "platform/ColorSuggestion.h"
|
| -#include "public/platform/WebColor.h"
|
| +#include "platform/network/WebSocketHandshakeRequest.h"
|
| #include "public/platform/WebString.h"
|
| +#include "public/platform/WebURL.h"
|
|
|
| namespace blink {
|
|
|
| -WebColorSuggestion::WebColorSuggestion(const ColorSuggestion& suggestion)
|
| - : color(static_cast<WebColor>(suggestion.color.rgb()))
|
| - , label(suggestion.label)
|
| +WebSocketHandshakeRequestInfo::WebSocketHandshakeRequestInfo() : m_private(WebSocketHandshakeRequest::create())
|
| {
|
| }
|
|
|
| -WebColorSuggestion& WebColorSuggestion::operator=(const ColorSuggestion& suggestion)
|
| +WebSocketHandshakeRequestInfo::~WebSocketHandshakeRequestInfo()
|
| {
|
| - color = static_cast<WebColor>(suggestion.color.rgb());
|
| - label = suggestion.label;
|
| - return *this;
|
| + m_private.reset();
|
| +}
|
| +
|
| +void WebSocketHandshakeRequestInfo::setURL(const WebURL& url)
|
| +{
|
| + m_private->setURL(url);
|
| +}
|
| +
|
| +void WebSocketHandshakeRequestInfo::addHeaderField(const WebString& name, const WebString& value)
|
| +{
|
| + m_private->addAndMergeHeader(name, value);
|
| +}
|
| +
|
| +void WebSocketHandshakeRequestInfo::setHeadersText(const WebString& text)
|
| +{
|
| + m_private->setHeadersText(text);
|
| }
|
|
|
| } // namespace blink
|
|
|