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

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

Issue 1396423002: Move //mojo/services/network/public/interfaces to //mojo/services/network/interfaces. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 5 years, 2 months 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
« no previous file with comments | « mojo/services/network/web_socket_write_queue.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "network/public/cpp/web_socket_write_queue.h" 5 #include "mojo/services/network/web_socket_write_queue.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 11
12 struct WebSocketWriteQueue::Operation { 12 struct WebSocketWriteQueue::Operation {
13 uint32_t num_bytes_; 13 uint32_t num_bytes_;
14 base::Callback<void(const char*)> callback_; 14 base::Callback<void(const char*)> callback_;
15 15
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 base::Bind(&WebSocketWriteQueue::OnHandleReady, 93 base::Bind(&WebSocketWriteQueue::OnHandleReady,
94 base::Unretained(this))); 94 base::Unretained(this)));
95 } 95 }
96 96
97 void WebSocketWriteQueue::OnHandleReady(MojoResult result) { 97 void WebSocketWriteQueue::OnHandleReady(MojoResult result) {
98 DCHECK(is_busy_); 98 DCHECK(is_busy_);
99 TryToWrite(); 99 TryToWrite();
100 } 100 }
101 101
102 } // namespace mojo 102 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/web_socket_write_queue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698