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

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

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 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
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 <memory> 10 #include <memory>
(...skipping 30 matching lines...) Expand all
41 bool use_abstract_namespace, 41 bool use_abstract_namespace,
42 SockaddrStorage* address); 42 SockaddrStorage* address);
43 43
44 // StreamSocket implementation. 44 // StreamSocket implementation.
45 int Connect(const CompletionCallback& callback) override; 45 int Connect(const CompletionCallback& callback) override;
46 void Disconnect() override; 46 void Disconnect() override;
47 bool IsConnected() const override; 47 bool IsConnected() const override;
48 bool IsConnectedAndIdle() const override; 48 bool IsConnectedAndIdle() const override;
49 int GetPeerAddress(IPEndPoint* address) const override; 49 int GetPeerAddress(IPEndPoint* address) const override;
50 int GetLocalAddress(IPEndPoint* address) const override; 50 int GetLocalAddress(IPEndPoint* address) const override;
51 const BoundNetLog& NetLog() const override; 51 const NetLogWithSource& NetLog() const override;
52 void SetSubresourceSpeculation() override; 52 void SetSubresourceSpeculation() override;
53 void SetOmniboxSpeculation() override; 53 void SetOmniboxSpeculation() override;
54 bool WasEverUsed() const override; 54 bool WasEverUsed() const override;
55 bool WasNpnNegotiated() const override; 55 bool WasNpnNegotiated() const override;
56 NextProto GetNegotiatedProtocol() const override; 56 NextProto GetNegotiatedProtocol() const override;
57 bool GetSSLInfo(SSLInfo* ssl_info) override; 57 bool GetSSLInfo(SSLInfo* ssl_info) override;
58 void GetConnectionAttempts(ConnectionAttempts* out) const override; 58 void GetConnectionAttempts(ConnectionAttempts* out) const override;
59 void ClearConnectionAttempts() override {} 59 void ClearConnectionAttempts() override {}
60 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} 60 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
61 int64_t GetTotalReceivedBytes() const override; 61 int64_t GetTotalReceivedBytes() const override;
(...skipping 12 matching lines...) Expand all
74 // Internal state is reset so that this object can be used again. 74 // Internal state is reset so that this object can be used again.
75 // Socket must be connected in order to release it. 75 // Socket must be connected in order to release it.
76 SocketDescriptor ReleaseConnectedSocket(); 76 SocketDescriptor ReleaseConnectedSocket();
77 77
78 private: 78 private:
79 const std::string socket_path_; 79 const std::string socket_path_;
80 const bool use_abstract_namespace_; 80 const bool use_abstract_namespace_;
81 std::unique_ptr<SocketPosix> socket_; 81 std::unique_ptr<SocketPosix> socket_;
82 // This net log is just to comply StreamSocket::NetLog(). It throws away 82 // This net log is just to comply StreamSocket::NetLog(). It throws away
83 // everything. 83 // everything.
84 BoundNetLog net_log_; 84 NetLogWithSource net_log_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(UnixDomainClientSocket); 86 DISALLOW_COPY_AND_ASSIGN(UnixDomainClientSocket);
87 }; 87 };
88 88
89 } // namespace net 89 } // namespace net
90 90
91 #endif // NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ 91 #endif // NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698