| 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 #include "config.h" | 31 #include "config.h" |
| 32 | 32 |
| 33 #include "modules/websockets/WebSocketExtensionParser.h" | 33 #include "modules/websockets/WebSocketExtensionParser.h" |
| 34 | 34 |
| 35 #include "wtf/ASCIICType.h" | 35 #include "wtf/ASCIICType.h" |
| 36 #include "wtf/text/CString.h" | 36 #include "wtf/text/CString.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace blink { |
| 39 | 39 |
| 40 WebSocketExtensionParser::ParserStateBackup::~ParserStateBackup() | 40 WebSocketExtensionParser::ParserStateBackup::~ParserStateBackup() |
| 41 { | 41 { |
| 42 if (!m_isDisposed) { | 42 if (!m_isDisposed) { |
| 43 m_parser->m_current = m_current; | 43 m_parser->m_current = m_current; |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 | 46 |
| 47 bool WebSocketExtensionParser::finished() | 47 bool WebSocketExtensionParser::finished() |
| 48 { | 48 { |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 153 } |
| 154 } | 154 } |
| 155 skipSpaces(); | 155 skipSpaces(); |
| 156 if (!finished() && !consumeCharacter(',')) | 156 if (!finished() && !consumeCharacter(',')) |
| 157 return false; | 157 return false; |
| 158 | 158 |
| 159 backup.dispose(); | 159 backup.dispose(); |
| 160 return true; | 160 return true; |
| 161 } | 161 } |
| 162 | 162 |
| 163 } // namespace WebCore | 163 } // namespace blink |
| OLD | NEW |