Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(829)

Unified Diff: third_party/WebKit/Source/platform/exported/WebSocketHandshakeRequestInfo.cpp

Issue 2279763003: Revert "Move WebSocketHandleImpl into Blink" (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698