| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 WebSocketDeflateFramer_h | 31 #ifndef WebSocketDeflateFramer_h |
| 32 #define WebSocketDeflateFramer_h | 32 #define WebSocketDeflateFramer_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 class WebSocketDeflateFramer; | 42 class WebSocketDeflateFramer; |
| 43 | 43 |
| 44 class DeflateResultHolder { | 44 class DeflateResultHolder { |
| 45 WTF_MAKE_FAST_ALLOCATED; | 45 WTF_MAKE_FAST_ALLOCATED; |
| 46 public: | 46 public: |
| 47 static PassOwnPtr<DeflateResultHolder> create(WebSocketDeflateFramer* framer
) | 47 static PassOwnPtr<DeflateResultHolder> create(WebSocketDeflateFramer* framer
) |
| 48 { | 48 { |
| 49 return adoptPtr(new DeflateResultHolder(framer)); | 49 return adoptPtr(new DeflateResultHolder(framer)); |
| 50 } | 50 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 private: | 107 private: |
| 108 bool m_enabled; | 108 bool m_enabled; |
| 109 OwnPtr<WebSocketDeflater> m_deflater; | 109 OwnPtr<WebSocketDeflater> m_deflater; |
| 110 OwnPtr<WebSocketInflater> m_inflater; | 110 OwnPtr<WebSocketInflater> m_inflater; |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } | 113 } |
| 114 | 114 |
| 115 #endif // WebSocketDeflateFramer_h | 115 #endif // WebSocketDeflateFramer_h |
| OLD | NEW |