OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/websockets/websocket_job.h" | 5 #include "net/websockets/websocket_job.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/string_tokenizer.h" | |
12 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
13 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
14 #include "net/base/net_log.h" | 13 #include "net/base/net_log.h" |
15 #include "net/cookies/cookie_store.h" | 14 #include "net/cookies/cookie_store.h" |
16 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
17 #include "net/http/http_network_session.h" | 16 #include "net/http/http_network_session.h" |
18 #include "net/http/http_transaction_factory.h" | 17 #include "net/http/http_transaction_factory.h" |
19 #include "net/http/http_util.h" | 18 #include "net/http/http_util.h" |
20 #include "net/spdy/spdy_session.h" | 19 #include "net/spdy/spdy_session.h" |
21 #include "net/spdy/spdy_session_pool.h" | 20 #include "net/spdy/spdy_session_pool.h" |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 | 653 |
655 scoped_refptr<IOBufferWithSize> next_buffer = send_buffer_queue_.front(); | 654 scoped_refptr<IOBufferWithSize> next_buffer = send_buffer_queue_.front(); |
656 send_buffer_queue_.pop_front(); | 655 send_buffer_queue_.pop_front(); |
657 current_send_buffer_ = new DrainableIOBuffer(next_buffer, | 656 current_send_buffer_ = new DrainableIOBuffer(next_buffer, |
658 next_buffer->size()); | 657 next_buffer->size()); |
659 SendDataInternal(current_send_buffer_->data(), | 658 SendDataInternal(current_send_buffer_->data(), |
660 current_send_buffer_->BytesRemaining()); | 659 current_send_buffer_->BytesRemaining()); |
661 } | 660 } |
662 | 661 |
663 } // namespace net | 662 } // namespace net |
OLD | NEW |