| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // We're collecting data for histogram in the destructor. Note that calling | 73 // We're collecting data for histogram in the destructor. Note that calling |
| 74 // this method affects that. | 74 // this method affects that. |
| 75 void reset(); | 75 void reset(); |
| 76 void clearExecutionContext(); | 76 void clearExecutionContext(); |
| 77 | 77 |
| 78 int readServerHandshake(const char* header, size_t len); | 78 int readServerHandshake(const char* header, size_t len); |
| 79 Mode mode() const; | 79 Mode mode() const; |
| 80 // Returns a string indicating the reason of failure if mode() == Failed. | 80 // Returns a string indicating the reason of failure if mode() == Failed. |
| 81 String failureReason() const; | 81 String failureReason() const; |
| 82 | 82 |
| 83 String serverWebSocketProtocol() const; | 83 const AtomicString& serverWebSocketProtocol() const; |
| 84 String serverSetCookie() const; | 84 const AtomicString& serverSetCookie() const; |
| 85 String serverSetCookie2() const; | 85 const AtomicString& serverSetCookie2() const; |
| 86 String serverUpgrade() const; | 86 const AtomicString& serverUpgrade() const; |
| 87 String serverConnection() const; | 87 const AtomicString& serverConnection() const; |
| 88 String serverWebSocketAccept() const; | 88 const AtomicString& serverWebSocketAccept() const; |
| 89 String acceptedExtensions() const; | 89 String acceptedExtensions() const; |
| 90 | 90 |
| 91 const WebSocketHandshakeResponse& serverHandshakeResponse() const; | 91 const WebSocketHandshakeResponse& serverHandshakeResponse() const; |
| 92 | 92 |
| 93 void addExtensionProcessor(PassOwnPtr<WebSocketExtensionProcessor>); | 93 void addExtensionProcessor(PassOwnPtr<WebSocketExtensionProcessor>); |
| 94 | 94 |
| 95 static String getExpectedWebSocketAccept(const String& secWebSocketKey); | 95 static String getExpectedWebSocketAccept(const String& secWebSocketKey); |
| 96 | 96 |
| 97 private: | 97 private: |
| 98 KURL httpURLForAuthenticationAndCookies() const; | 98 KURL httpURLForAuthenticationAndCookies() const; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 121 | 121 |
| 122 String m_secWebSocketKey; | 122 String m_secWebSocketKey; |
| 123 String m_expectedAccept; | 123 String m_expectedAccept; |
| 124 | 124 |
| 125 WebSocketExtensionDispatcher m_extensionDispatcher; | 125 WebSocketExtensionDispatcher m_extensionDispatcher; |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace WebCore | 128 } // namespace WebCore |
| 129 | 129 |
| 130 #endif // WebSocketHandshake_h | 130 #endif // WebSocketHandshake_h |
| OLD | NEW |