| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_channel.h" | 5 #include "net/websockets/websocket_channel.h" |
| 6 | 6 |
| 7 #include <limits.h> | 7 #include <limits.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include <iostream> | 10 #include <iostream> |
| 11 #include <iterator> | 11 #include <iterator> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <utility> | 13 #include <utility> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/bind.h" | 16 #include "base/bind.h" |
| 17 #include "base/bind_helpers.h" | 17 #include "base/bind_helpers.h" |
| 18 #include "base/callback.h" | 18 #include "base/callback.h" |
| 19 #include "base/location.h" | 19 #include "base/location.h" |
| 20 #include "base/macros.h" |
| 20 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
| 21 #include "base/memory/weak_ptr.h" | 22 #include "base/memory/weak_ptr.h" |
| 22 #include "base/message_loop/message_loop.h" | 23 #include "base/message_loop/message_loop.h" |
| 23 #include "base/single_thread_task_runner.h" | 24 #include "base/single_thread_task_runner.h" |
| 24 #include "base/strings/string_piece.h" | 25 #include "base/strings/string_piece.h" |
| 25 #include "base/thread_task_runner_handle.h" | 26 #include "base/thread_task_runner_handle.h" |
| 26 #include "net/base/net_errors.h" | 27 #include "net/base/net_errors.h" |
| 27 #include "net/base/test_completion_callback.h" | 28 #include "net/base/test_completion_callback.h" |
| 28 #include "net/http/http_response_headers.h" | 29 #include "net/http/http_response_headers.h" |
| 29 #include "net/url_request/url_request_context.h" | 30 #include "net/url_request/url_request_context.h" |
| (...skipping 3385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3415 channel_->StartClosingHandshake(kWebSocketNormalClosure, "OK"); | 3416 channel_->StartClosingHandshake(kWebSocketNormalClosure, "OK"); |
| 3416 ASSERT_TRUE(read_frames); | 3417 ASSERT_TRUE(read_frames); |
| 3417 // Provide the "Close" message from the server. | 3418 // Provide the "Close" message from the server. |
| 3418 *read_frames = CreateFrameVector(frames); | 3419 *read_frames = CreateFrameVector(frames); |
| 3419 read_callback.Run(OK); | 3420 read_callback.Run(OK); |
| 3420 completion.WaitForResult(); | 3421 completion.WaitForResult(); |
| 3421 } | 3422 } |
| 3422 | 3423 |
| 3423 } // namespace | 3424 } // namespace |
| 3424 } // namespace net | 3425 } // namespace net |
| OLD | NEW |