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

Side by Side Diff: net/socket/unix_domain_client_socket_posix.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 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 #ifndef NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ 5 #ifndef NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_
6 #define NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ 6 #define NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h"
13 #include "base/macros.h" 12 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
15 #include "net/base/completion_callback.h" 14 #include "net/base/completion_callback.h"
16 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
17 #include "net/log/net_log.h" 16 #include "net/log/net_log.h"
18 #include "net/socket/socket_descriptor.h" 17 #include "net/socket/socket_descriptor.h"
19 #include "net/socket/stream_socket.h" 18 #include "net/socket/stream_socket.h"
20 19
21 namespace net { 20 namespace net {
22 21
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} 61 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
63 int64_t GetTotalReceivedBytes() const override; 62 int64_t GetTotalReceivedBytes() const override;
64 63
65 // Socket implementation. 64 // Socket implementation.
66 int Read(IOBuffer* buf, 65 int Read(IOBuffer* buf,
67 int buf_len, 66 int buf_len,
68 const CompletionCallback& callback) override; 67 const CompletionCallback& callback) override;
69 int Write(IOBuffer* buf, 68 int Write(IOBuffer* buf,
70 int buf_len, 69 int buf_len,
71 const CompletionCallback& callback) override; 70 const CompletionCallback& callback) override;
72 int SetReceiveBufferSize(int32 size) override; 71 int SetReceiveBufferSize(int32_t size) override;
73 int SetSendBufferSize(int32 size) override; 72 int SetSendBufferSize(int32_t size) override;
74 73
75 // Releases ownership of underlying SocketDescriptor to caller. 74 // Releases ownership of underlying SocketDescriptor to caller.
76 // Internal state is reset so that this object can be used again. 75 // Internal state is reset so that this object can be used again.
77 // Socket must be connected in order to release it. 76 // Socket must be connected in order to release it.
78 SocketDescriptor ReleaseConnectedSocket(); 77 SocketDescriptor ReleaseConnectedSocket();
79 78
80 private: 79 private:
81 const std::string socket_path_; 80 const std::string socket_path_;
82 const bool use_abstract_namespace_; 81 const bool use_abstract_namespace_;
83 scoped_ptr<SocketPosix> socket_; 82 scoped_ptr<SocketPosix> socket_;
84 // This net log is just to comply StreamSocket::NetLog(). It throws away 83 // This net log is just to comply StreamSocket::NetLog(). It throws away
85 // everything. 84 // everything.
86 BoundNetLog net_log_; 85 BoundNetLog net_log_;
87 86
88 DISALLOW_COPY_AND_ASSIGN(UnixDomainClientSocket); 87 DISALLOW_COPY_AND_ASSIGN(UnixDomainClientSocket);
89 }; 88 };
90 89
91 } // namespace net 90 } // namespace net
92 91
93 #endif // NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ 92 #endif // NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_
OLDNEW
« no previous file with comments | « net/socket/transport_client_socket_unittest.cc ('k') | net/socket/unix_domain_client_socket_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698