Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp

Issue 2387263004: Manually remove many instances of a comma quirk arising from the reformat. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 : ContextLifecycleObserver(document), 134 : ContextLifecycleObserver(document),
135 m_handle(wrapUnique(handle ? handle : new WebSocketHandleImpl())), 135 m_handle(wrapUnique(handle ? handle : new WebSocketHandleImpl())),
136 m_client(client), 136 m_client(client),
137 m_identifier(createUniqueIdentifier()), 137 m_identifier(createUniqueIdentifier()),
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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 ContextLifecycleObserver::trace(visitor); 656 ContextLifecycleObserver::trace(visitor);
658 } 657 }
659 658
660 std::ostream& operator<<(std::ostream& ostream, 659 std::ostream& operator<<(std::ostream& ostream,
661 const DocumentWebSocketChannel* channel) { 660 const DocumentWebSocketChannel* channel) {
662 return ostream << "DocumentWebSocketChannel " 661 return ostream << "DocumentWebSocketChannel "
663 << static_cast<const void*>(channel); 662 << static_cast<const void*>(channel);
664 } 663 }
665 664
666 } // namespace blink 665 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698