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

Side by Side Diff: mojo/services/network/public/cpp/web_socket_read_queue.h

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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
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 #ifndef MOJO_SERVICES_NETWORK_PUBLIC_CPP_WEB_SOCKET_READ_QUEUE_H_ 5 #ifndef MOJO_SERVICES_NETWORK_PUBLIC_CPP_WEB_SOCKET_READ_QUEUE_H_
6 #define MOJO_SERVICES_NETWORK_PUBLIC_CPP_WEB_SOCKET_READ_QUEUE_H_ 6 #define MOJO_SERVICES_NETWORK_PUBLIC_CPP_WEB_SOCKET_READ_QUEUE_H_
7 7
8 #include <stdint.h>
9
8 #include "base/callback.h" 10 #include "base/callback.h"
9 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
10 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
11 #include "mojo/message_pump/handle_watcher.h" 13 #include "mojo/message_pump/handle_watcher.h"
12 #include "mojo/public/cpp/system/data_pipe.h" 14 #include "mojo/public/cpp/system/data_pipe.h"
13 15
14 namespace mojo { 16 namespace mojo {
15 17
16 // This class simplifies the handling of multiple Reads on a DataPipe. It reads 18 // This class simplifies the handling of multiple Reads on a DataPipe. It reads
17 // the data in the expected chunk size, calling the callback once a full chunk 19 // the data in the expected chunk size, calling the callback once a full chunk
(...skipping 18 matching lines...) Expand all
36 DataPipeConsumerHandle handle_; 38 DataPipeConsumerHandle handle_;
37 common::HandleWatcher handle_watcher_; 39 common::HandleWatcher handle_watcher_;
38 ScopedVector<Operation> queue_; 40 ScopedVector<Operation> queue_;
39 bool is_busy_; 41 bool is_busy_;
40 base::WeakPtrFactory<WebSocketReadQueue> weak_factory_; 42 base::WeakPtrFactory<WebSocketReadQueue> weak_factory_;
41 }; 43 };
42 44
43 } // namespace mojo 45 } // namespace mojo
44 46
45 #endif // MOJO_SERVICES_NETWORK_PUBLIC_CPP_WEB_SOCKET_READ_QUEUE_H_ 47 #endif // MOJO_SERVICES_NETWORK_PUBLIC_CPP_WEB_SOCKET_READ_QUEUE_H_
OLDNEW
« no previous file with comments | « mojo/services/network/public/cpp/udp_socket_wrapper.cc ('k') | mojo/services/network/public/cpp/web_socket_read_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698