| 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 21 matching lines...) Expand all Loading... |
| 32 #define WebSocketDeflater_h | 32 #define WebSocketDeflater_h |
| 33 | 33 |
| 34 #include "wtf/Noncopyable.h" | 34 #include "wtf/Noncopyable.h" |
| 35 #include "wtf/OwnPtr.h" | 35 #include "wtf/OwnPtr.h" |
| 36 #include "wtf/PassOwnPtr.h" | 36 #include "wtf/PassOwnPtr.h" |
| 37 #include "wtf/Vector.h" | 37 #include "wtf/Vector.h" |
| 38 | 38 |
| 39 struct z_stream_s; | 39 struct z_stream_s; |
| 40 typedef z_stream_s z_stream; | 40 typedef z_stream_s z_stream; |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace blink { |
| 43 | 43 |
| 44 class WebSocketDeflater { | 44 class WebSocketDeflater { |
| 45 WTF_MAKE_FAST_ALLOCATED; | 45 WTF_MAKE_FAST_ALLOCATED; |
| 46 public: | 46 public: |
| 47 // This enum is reused for histogram. When this needs to be modified, add a | 47 // This enum is reused for histogram. When this needs to be modified, add a |
| 48 // new enum for histogram and convert mode values into values in the new | 48 // new enum for histogram and convert mode values into values in the new |
| 49 // enum to keep new data consistent with old one. | 49 // enum to keep new data consistent with old one. |
| 50 enum ContextTakeOverMode { | 50 enum ContextTakeOverMode { |
| 51 DoNotTakeOverContext, | 51 DoNotTakeOverContext, |
| 52 TakeOverContext, | 52 TakeOverContext, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 explicit WebSocketInflater(int windowBits); | 95 explicit WebSocketInflater(int windowBits); |
| 96 | 96 |
| 97 int m_windowBits; | 97 int m_windowBits; |
| 98 Vector<char> m_buffer; | 98 Vector<char> m_buffer; |
| 99 OwnPtr<z_stream> m_stream; | 99 OwnPtr<z_stream> m_stream; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } | 102 } |
| 103 | 103 |
| 104 #endif // WebSocketDeflater_h | 104 #endif // WebSocketDeflater_h |
| OLD | NEW |