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

Unified Diff: Source/platform/network/WebSocketHandshakeRequest.h

Issue 130863002: [WebSocket] Merge duplicated HTTP headers for devtools (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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: Source/platform/network/WebSocketHandshakeRequest.h
diff --git a/Source/platform/network/WebSocketHandshakeRequest.h b/Source/platform/network/WebSocketHandshakeRequest.h
index 87786fb8a0250fea3b743379b23cd467f2237591..21adb966a71f1db50d2f0a59e44ca56a8955f126 100644
--- a/Source/platform/network/WebSocketHandshakeRequest.h
+++ b/Source/platform/network/WebSocketHandshakeRequest.h
@@ -31,6 +31,7 @@
#ifndef WebSocketHandshakeRequest_h
#define WebSocketHandshakeRequest_h
+#include "platform/network/HTTPHeaderMap.h"
tkent 2014/01/14 00:25:14 Do we need to include this?
yhirano 2014/01/14 01:17:04 Done.
#include "platform/network/HTTPRequest.h"
namespace WebCore {
@@ -41,6 +42,13 @@ public:
static PassRefPtr<WebSocketHandshakeRequest> create() { return adoptRef(new WebSocketHandshakeRequest); }
~WebSocketHandshakeRequest();
+ void addAndMergeHeader(const AtomicString& name, const AtomicString& value) { addAndMergeHeader(&m_headerFields, name, value); }
+
+ // Merges the existing value with |value| in |map| if |map| already has |name|.
+ // Associates |value| with |name| in |map| otherwise.
+ // This function builds data for inspector.
+ static void addAndMergeHeader(HTTPHeaderMap* /* map */, const AtomicString& name, const AtomicString& value);
+
private:
WebSocketHandshakeRequest(const String& requestMethod, const KURL&);
WebSocketHandshakeRequest();

Powered by Google App Engine
This is Rietveld 408576698