| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/services/network/public/cpp/web_socket_read_queue.h" | 5 #include "network/public/cpp/web_socket_read_queue.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 | 8 |
| 9 namespace mojo { | 9 namespace mojo { |
| 10 | 10 |
| 11 struct WebSocketReadQueue::Operation { | 11 struct WebSocketReadQueue::Operation { |
| 12 uint32_t num_bytes_; | 12 uint32_t num_bytes_; |
| 13 base::Callback<void(const char*)> callback_; | 13 base::Callback<void(const char*)> callback_; |
| 14 }; | 14 }; |
| 15 | 15 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 MOJO_DEADLINE_INDEFINITE, | 61 MOJO_DEADLINE_INDEFINITE, |
| 62 base::Bind(&WebSocketReadQueue::OnHandleReady, base::Unretained(this))); | 62 base::Bind(&WebSocketReadQueue::OnHandleReady, base::Unretained(this))); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void WebSocketReadQueue::OnHandleReady(MojoResult result) { | 65 void WebSocketReadQueue::OnHandleReady(MojoResult result) { |
| 66 is_waiting_ = false; | 66 is_waiting_ = false; |
| 67 TryToRead(); | 67 TryToRead(); |
| 68 } | 68 } |
| 69 | 69 |
| 70 } // namespace mojo | 70 } // namespace mojo |
| OLD | NEW |