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

Side by Side Diff: mojo/services/network/public/cpp/web_socket_write_queue.cc

Issue 789243002: Restructure public side of network service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase Created 6 years 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 // 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/public/cpp/network/web_socket_write_queue.h" 5 #include "mojo/services/network/public/cpp/web_socket_write_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 WebSocketWriteQueue::Operation { 11 struct WebSocketWriteQueue::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 const char* data_; 15 const char* data_;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 base::Bind(&WebSocketWriteQueue::OnHandleReady, 75 base::Bind(&WebSocketWriteQueue::OnHandleReady,
76 base::Unretained(this))); 76 base::Unretained(this)));
77 } 77 }
78 78
79 void WebSocketWriteQueue::OnHandleReady(MojoResult result) { 79 void WebSocketWriteQueue::OnHandleReady(MojoResult result) {
80 is_waiting_ = false; 80 is_waiting_ = false;
81 TryToWrite(); 81 TryToWrite();
82 } 82 }
83 83
84 } // namespace mojo 84 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/public/cpp/web_socket_write_queue.h ('k') | mojo/services/network/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698