| 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 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebSocketExtensionParser_h | 31 #ifndef WebSocketExtensionParser_h |
| 32 #define WebSocketExtensionParser_h | 32 #define WebSocketExtensionParser_h |
| 33 | 33 |
| 34 #include "wtf/HashMap.h" | 34 #include "wtf/HashMap.h" |
| 35 #include "wtf/text/StringHash.h" | 35 #include "wtf/text/StringHash.h" |
| 36 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace blink { |
| 39 | 39 |
| 40 class WebSocketExtensionParser { | 40 class WebSocketExtensionParser { |
| 41 public: | 41 public: |
| 42 WebSocketExtensionParser(const char* start, const char* end) | 42 WebSocketExtensionParser(const char* start, const char* end) |
| 43 : m_current(start) | 43 : m_current(start) |
| 44 , m_end(end) | 44 , m_end(end) |
| 45 { | 45 { |
| 46 } | 46 } |
| 47 bool finished(); | 47 bool finished(); |
| 48 bool parsedSuccessfully(); | 48 bool parsedSuccessfully(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 72 bool consumeQuotedStringOrToken(); | 72 bool consumeQuotedStringOrToken(); |
| 73 bool consumeCharacter(char); | 73 bool consumeCharacter(char); |
| 74 | 74 |
| 75 void skipSpaces(); | 75 void skipSpaces(); |
| 76 | 76 |
| 77 const char* m_current; | 77 const char* m_current; |
| 78 const char* const m_end; | 78 const char* const m_end; |
| 79 String m_currentToken; | 79 String m_currentToken; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace WebCore | 82 } // namespace blink |
| 83 | 83 |
| 84 #endif // WebSocketExtensionParser_h | 84 #endif // WebSocketExtensionParser_h |
| OLD | NEW |