diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/websockets/WebSocketHandshake.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/modules/websockets/WebSocketHandshake.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/websockets/WebSocketHandshake.h b/chromium/third_party/WebKit/Source/modules/websockets/WebSocketHandshake.h index 835aae72c93..2053bba87fb 100644 --- a/chromium/third_party/WebKit/Source/modules/websockets/WebSocketHandshake.h +++ b/chromium/third_party/WebKit/Source/modules/websockets/WebSocketHandshake.h @@ -41,7 +41,7 @@ namespace WebCore { -class ExecutionContext; +class Document; class WebSocketHandshake { WTF_MAKE_NONCOPYABLE(WebSocketHandshake); WTF_MAKE_FAST_ALLOCATED; @@ -52,7 +52,7 @@ public: enum Mode { Incomplete, Normal, Failed, Connected, ModeMax }; - WebSocketHandshake(const KURL&, const String& protocol, ExecutionContext*); + WebSocketHandshake(const KURL&, const String& protocol, Document*); ~WebSocketHandshake(); const KURL& url() const; @@ -67,13 +67,18 @@ public: String clientOrigin() const; String clientLocation() const; + // Builds a WebSocket opening handshake string to send to the server. + // Cookie headers will be added later by the platform code for security + // reason. CString clientHandshakeMessage() const; + // Builds an object representing WebSocket opening handshake to pass to the + // inspector. PassRefPtr<WebSocketHandshakeRequest> clientHandshakeRequest() const; // We're collecting data for histogram in the destructor. Note that calling // this method affects that. void reset(); - void clearExecutionContext(); + void clearDocument(); int readServerHandshake(const char* header, size_t len); Mode mode() const; @@ -81,8 +86,6 @@ public: String failureReason() const; const AtomicString& serverWebSocketProtocol() const; - const AtomicString& serverSetCookie() const; - const AtomicString& serverSetCookie2() const; const AtomicString& serverUpgrade() const; const AtomicString& serverConnection() const; const AtomicString& serverWebSocketAccept() const; @@ -107,7 +110,7 @@ private: KURL m_url; String m_clientProtocol; bool m_secure; - ExecutionContext* m_context; + Document* m_document; Mode m_mode; |