| 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 "network/public/cpp/web_socket_read_queue.h" | 5 #include "mojo/services/network/web_socket_read_queue.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 | 11 |
| 12 namespace mojo { | 12 namespace mojo { |
| 13 | 13 |
| 14 struct WebSocketReadQueue::Operation { | 14 struct WebSocketReadQueue::Operation { |
| 15 uint32_t num_bytes_; | 15 uint32_t num_bytes_; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 MOJO_DEADLINE_INDEFINITE, | 93 MOJO_DEADLINE_INDEFINITE, |
| 94 base::Bind(&WebSocketReadQueue::OnHandleReady, base::Unretained(this))); | 94 base::Bind(&WebSocketReadQueue::OnHandleReady, base::Unretained(this))); |
| 95 } | 95 } |
| 96 | 96 |
| 97 void WebSocketReadQueue::OnHandleReady(MojoResult result) { | 97 void WebSocketReadQueue::OnHandleReady(MojoResult result) { |
| 98 DCHECK(is_busy_); | 98 DCHECK(is_busy_); |
| 99 TryToRead(); | 99 TryToRead(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 } // namespace mojo | 102 } // namespace mojo |
| OLD | NEW |