| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 20 matching lines...) Expand all Loading... |
| 31 #ifndef WebSocketHandshakeRequest_h | 31 #ifndef WebSocketHandshakeRequest_h |
| 32 #define WebSocketHandshakeRequest_h | 32 #define WebSocketHandshakeRequest_h |
| 33 | 33 |
| 34 #include "platform/PlatformExport.h" | 34 #include "platform/PlatformExport.h" |
| 35 #include "platform/network/HTTPHeaderMap.h" | 35 #include "platform/network/HTTPHeaderMap.h" |
| 36 #include "platform/weborigin/KURL.h" | 36 #include "platform/weborigin/KURL.h" |
| 37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
| 38 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
| 39 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace blink { |
| 42 | 42 |
| 43 class HTTPHeaderMap; | 43 class HTTPHeaderMap; |
| 44 | 44 |
| 45 class PLATFORM_EXPORT WebSocketHandshakeRequest : public RefCounted<WebSocketHan
dshakeRequest> { | 45 class PLATFORM_EXPORT WebSocketHandshakeRequest : public RefCounted<WebSocketHan
dshakeRequest> { |
| 46 public: | 46 public: |
| 47 static PassRefPtr<WebSocketHandshakeRequest> create(const KURL& url) { retur
n adoptRef(new WebSocketHandshakeRequest(url)); } | 47 static PassRefPtr<WebSocketHandshakeRequest> create(const KURL& url) { retur
n adoptRef(new WebSocketHandshakeRequest(url)); } |
| 48 static PassRefPtr<WebSocketHandshakeRequest> create() { return adoptRef(new
WebSocketHandshakeRequest); } | 48 static PassRefPtr<WebSocketHandshakeRequest> create() { return adoptRef(new
WebSocketHandshakeRequest); } |
| 49 static PassRefPtr<WebSocketHandshakeRequest> create(const WebSocketHandshake
Request& request) { return adoptRef(new WebSocketHandshakeRequest(request)); } | 49 static PassRefPtr<WebSocketHandshakeRequest> create(const WebSocketHandshake
Request& request) { return adoptRef(new WebSocketHandshakeRequest(request)); } |
| 50 virtual ~WebSocketHandshakeRequest(); | 50 virtual ~WebSocketHandshakeRequest(); |
| 51 | 51 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 68 private: | 68 private: |
| 69 WebSocketHandshakeRequest(const KURL&); | 69 WebSocketHandshakeRequest(const KURL&); |
| 70 WebSocketHandshakeRequest(); | 70 WebSocketHandshakeRequest(); |
| 71 WebSocketHandshakeRequest(const WebSocketHandshakeRequest&); | 71 WebSocketHandshakeRequest(const WebSocketHandshakeRequest&); |
| 72 | 72 |
| 73 KURL m_url; | 73 KURL m_url; |
| 74 HTTPHeaderMap m_headerFields; | 74 HTTPHeaderMap m_headerFields; |
| 75 String m_headersText; | 75 String m_headersText; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace WebCore | 78 } // namespace blink |
| 79 | 79 |
| 80 #endif // WebSocketHandshakeRequest_h | 80 #endif // WebSocketHandshakeRequest_h |
| OLD | NEW |