| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2013 Google Inc. All rights reserved. | 2  * Copyright (C) 2013 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 130     Document* document, | 130     Document* document, | 
| 131     WebSocketChannelClient* client, | 131     WebSocketChannelClient* client, | 
| 132     std::unique_ptr<SourceLocation> location, | 132     std::unique_ptr<SourceLocation> location, | 
| 133     WebSocketHandle* handle) | 133     WebSocketHandle* handle) | 
| 134     : m_handle(wrapUnique(handle ? handle : new WebSocketHandleImpl())), | 134     : m_handle(wrapUnique(handle ? handle : new WebSocketHandleImpl())), | 
| 135       m_client(client), | 135       m_client(client), | 
| 136       m_identifier(createUniqueIdentifier()), | 136       m_identifier(createUniqueIdentifier()), | 
| 137       m_document(document), | 137       m_document(document), | 
| 138       m_sendingQuota(0), | 138       m_sendingQuota(0), | 
| 139       m_receivedDataSizeForFlowControl( | 139       m_receivedDataSizeForFlowControl( | 
| 140           receivedDataSizeForFlowControlHighWaterMark * 2)  // initial quota | 140           receivedDataSizeForFlowControlHighWaterMark * 2),  // initial quota | 
| 141       , |  | 
| 142       m_sentSizeOfTopMessage(0), | 141       m_sentSizeOfTopMessage(0), | 
| 143       m_locationAtConstruction(std::move(location)) {} | 142       m_locationAtConstruction(std::move(location)) {} | 
| 144 | 143 | 
| 145 DocumentWebSocketChannel::~DocumentWebSocketChannel() { | 144 DocumentWebSocketChannel::~DocumentWebSocketChannel() { | 
| 146   DCHECK(!m_blobLoader); | 145   DCHECK(!m_blobLoader); | 
| 147 } | 146 } | 
| 148 | 147 | 
| 149 bool DocumentWebSocketChannel::connect(const KURL& url, | 148 bool DocumentWebSocketChannel::connect(const KURL& url, | 
| 150                                        const String& protocol) { | 149                                        const String& protocol) { | 
| 151   NETWORK_DVLOG(1) << this << " connect()"; | 150   NETWORK_DVLOG(1) << this << " connect()"; | 
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 654   WebSocketChannel::trace(visitor); | 653   WebSocketChannel::trace(visitor); | 
| 655 } | 654 } | 
| 656 | 655 | 
| 657 std::ostream& operator<<(std::ostream& ostream, | 656 std::ostream& operator<<(std::ostream& ostream, | 
| 658                          const DocumentWebSocketChannel* channel) { | 657                          const DocumentWebSocketChannel* channel) { | 
| 659   return ostream << "DocumentWebSocketChannel " | 658   return ostream << "DocumentWebSocketChannel " | 
| 660                  << static_cast<const void*>(channel); | 659                  << static_cast<const void*>(channel); | 
| 661 } | 660 } | 
| 662 | 661 | 
| 663 }  // namespace blink | 662 }  // namespace blink | 
| OLD | NEW | 
|---|