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

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

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_FUZZED_SOCKET_FACTORY_H_ 5 #ifndef NET_SOCKET_FUZZED_SOCKET_FACTORY_H_
6 #define NET_SOCKET_FUZZED_SOCKET_FACTORY_H_ 6 #define NET_SOCKET_FUZZED_SOCKET_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 21 matching lines...) Expand all
32 // creates. Other objects can also continue to consume |data_provider|, as 32 // creates. Other objects can also continue to consume |data_provider|, as
33 // long as their calls into it are made on the CLientSocketFactory's thread 33 // long as their calls into it are made on the CLientSocketFactory's thread
34 // and the calls are deterministic. 34 // and the calls are deterministic.
35 explicit FuzzedSocketFactory(base::FuzzedDataProvider* data_provider); 35 explicit FuzzedSocketFactory(base::FuzzedDataProvider* data_provider);
36 ~FuzzedSocketFactory() override; 36 ~FuzzedSocketFactory() override;
37 37
38 std::unique_ptr<DatagramClientSocket> CreateDatagramClientSocket( 38 std::unique_ptr<DatagramClientSocket> CreateDatagramClientSocket(
39 DatagramSocket::BindType bind_type, 39 DatagramSocket::BindType bind_type,
40 const RandIntCallback& rand_int_cb, 40 const RandIntCallback& rand_int_cb,
41 NetLog* net_log, 41 NetLog* net_log,
42 const NetLog::Source& source) override; 42 const NetLogSource& source) override;
43 43
44 std::unique_ptr<StreamSocket> CreateTransportClientSocket( 44 std::unique_ptr<StreamSocket> CreateTransportClientSocket(
45 const AddressList& addresses, 45 const AddressList& addresses,
46 std::unique_ptr<SocketPerformanceWatcher> socket_performance_watcher, 46 std::unique_ptr<SocketPerformanceWatcher> socket_performance_watcher,
47 NetLog* net_log, 47 NetLog* net_log,
48 const NetLog::Source& source) override; 48 const NetLogSource& source) override;
49 49
50 std::unique_ptr<SSLClientSocket> CreateSSLClientSocket( 50 std::unique_ptr<SSLClientSocket> CreateSSLClientSocket(
51 std::unique_ptr<ClientSocketHandle> transport_socket, 51 std::unique_ptr<ClientSocketHandle> transport_socket,
52 const HostPortPair& host_and_port, 52 const HostPortPair& host_and_port,
53 const SSLConfig& ssl_config, 53 const SSLConfig& ssl_config,
54 const SSLClientSocketContext& context) override; 54 const SSLClientSocketContext& context) override;
55 55
56 void ClearSSLSessionCache() override; 56 void ClearSSLSessionCache() override;
57 57
58 private: 58 private:
59 base::FuzzedDataProvider* data_provider_; 59 base::FuzzedDataProvider* data_provider_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(FuzzedSocketFactory); 61 DISALLOW_COPY_AND_ASSIGN(FuzzedSocketFactory);
62 }; 62 };
63 63
64 } // namespace net 64 } // namespace net
65 65
66 #endif // NET_SOCKET_FUZZED_SOCKET_FACTORY_H_ 66 #endif // NET_SOCKET_FUZZED_SOCKET_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698