| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef WebSocketPerMessageDeflate_h | 31 #ifndef WebSocketPerMessageDeflate_h |
| 32 #define WebSocketPerMessageDeflate_h | 32 #define WebSocketPerMessageDeflate_h |
| 33 | 33 |
| 34 #include "modules/websockets/WebSocketDeflater.h" | 34 #include "modules/websockets/WebSocketDeflater.h" |
| 35 #include "modules/websockets/WebSocketExtensionProcessor.h" | 35 #include "modules/websockets/WebSocketExtensionProcessor.h" |
| 36 #include "modules/websockets/WebSocketFrame.h" | 36 #include "modules/websockets/WebSocketFrame.h" |
| 37 #include "wtf/OwnPtr.h" | 37 #include "wtf/OwnPtr.h" |
| 38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace blink { |
| 41 | 41 |
| 42 // WebSocketPerMessageDeflate is a deflater / inflater for a WebSocket message w
ith DEFLATE algorithm. | 42 // WebSocketPerMessageDeflate is a deflater / inflater for a WebSocket message w
ith DEFLATE algorithm. |
| 43 // See http://tools.ietf.org/html/draft-ietf-hybi-permessage-compression-08 | 43 // See http://tools.ietf.org/html/draft-ietf-hybi-permessage-compression-08 |
| 44 class WebSocketPerMessageDeflate { | 44 class WebSocketPerMessageDeflate { |
| 45 public: | 45 public: |
| 46 WebSocketPerMessageDeflate(); | 46 WebSocketPerMessageDeflate(); |
| 47 | 47 |
| 48 PassOwnPtr<WebSocketExtensionProcessor> createExtensionProcessor(); | 48 PassOwnPtr<WebSocketExtensionProcessor> createExtensionProcessor(); |
| 49 | 49 |
| 50 void enable(int windowBits, WebSocketDeflater::ContextTakeOverMode); | 50 void enable(int windowBits, WebSocketDeflater::ContextTakeOverMode); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 bool m_deflateOngoing; | 84 bool m_deflateOngoing; |
| 85 bool m_inflateOngoing; | 85 bool m_inflateOngoing; |
| 86 String m_failureReason; | 86 String m_failureReason; |
| 87 OwnPtr<WebSocketDeflater> m_deflater; | 87 OwnPtr<WebSocketDeflater> m_deflater; |
| 88 OwnPtr<WebSocketInflater> m_inflater; | 88 OwnPtr<WebSocketInflater> m_inflater; |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } | 91 } |
| 92 | 92 |
| 93 #endif // WebSocketPerMessageDeflate_h | 93 #endif // WebSocketPerMessageDeflate_h |
| OLD | NEW |