Chromium Code Reviews| 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(); |