| 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 | 32 |
| 33 #include "modules/websockets/WebSocketExtensionDispatcher.h" | 33 #include "modules/websockets/WebSocketExtensionDispatcher.h" |
| 34 | 34 |
| 35 #include "modules/websockets/WebSocketExtensionParser.h" | 35 #include "modules/websockets/WebSocketExtensionParser.h" |
| 36 | 36 |
| 37 #include "wtf/ASCIICType.h" | 37 #include "wtf/ASCIICType.h" |
| 38 #include "wtf/HashMap.h" | 38 #include "wtf/HashMap.h" |
| 39 #include "wtf/text/CString.h" | 39 #include "wtf/text/CString.h" |
| 40 #include "wtf/text/StringHash.h" | 40 #include "wtf/text/StringHash.h" |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace blink { |
| 43 | 43 |
| 44 void WebSocketExtensionDispatcher::reset() | 44 void WebSocketExtensionDispatcher::reset() |
| 45 { | 45 { |
| 46 m_processors.clear(); | 46 m_processors.clear(); |
| 47 } | 47 } |
| 48 | 48 |
| 49 void WebSocketExtensionDispatcher::addProcessor(PassOwnPtr<WebSocketExtensionPro
cessor> processor) | 49 void WebSocketExtensionDispatcher::addProcessor(PassOwnPtr<WebSocketExtensionPro
cessor> processor) |
| 50 { | 50 { |
| 51 for (size_t i = 0; i < m_processors.size(); ++i) { | 51 for (size_t i = 0; i < m_processors.size(); ++i) { |
| 52 if (m_processors[i]->extensionToken() == processor->extensionToken()) | 52 if (m_processors[i]->extensionToken() == processor->extensionToken()) |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 if (m_acceptedExtensionsBuilder.isEmpty()) | 142 if (m_acceptedExtensionsBuilder.isEmpty()) |
| 143 return String(); | 143 return String(); |
| 144 return m_acceptedExtensionsBuilder.toString(); | 144 return m_acceptedExtensionsBuilder.toString(); |
| 145 } | 145 } |
| 146 | 146 |
| 147 String WebSocketExtensionDispatcher::failureReason() const | 147 String WebSocketExtensionDispatcher::failureReason() const |
| 148 { | 148 { |
| 149 return m_failureReason; | 149 return m_failureReason; |
| 150 } | 150 } |
| 151 | 151 |
| 152 } // namespace WebCore | 152 } // namespace blink |
| OLD | NEW |