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

Unified Diff: net/udp/fuzzed_datagram_client_socket.h

Issue 2250263003: Move FuzzedDataProvider to //base and expose to blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ... also remove PLATFORM_EXPORT Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/socks_client_socket_fuzzer.cc ('k') | net/udp/fuzzed_datagram_client_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/udp/fuzzed_datagram_client_socket.h
diff --git a/net/udp/fuzzed_datagram_client_socket.h b/net/udp/fuzzed_datagram_client_socket.h
index 78801c3d2d84d999ac44e057dd84a0190057b651..fa41eda8457a69639dd6239f2318fafbd80bb456 100644
--- a/net/udp/fuzzed_datagram_client_socket.h
+++ b/net/udp/fuzzed_datagram_client_socket.h
@@ -15,9 +15,12 @@
#include "net/base/network_change_notifier.h"
#include "net/log/net_log.h"
+namespace base {
+class FuzzedDataProvider;
+}
+
namespace net {
-class FuzzedDataProvider;
class IOBuffer;
// Datagram ClientSocket implementation for use with fuzzers. Can fail to
@@ -26,7 +29,7 @@ class IOBuffer;
class FuzzedDatagramClientSocket : public DatagramClientSocket {
public:
// |data_provider| must outlive the created socket.
- explicit FuzzedDatagramClientSocket(FuzzedDataProvider* data_provider);
+ explicit FuzzedDatagramClientSocket(base::FuzzedDataProvider* data_provider);
~FuzzedDatagramClientSocket() override;
// DatagramClientSocket implementation:
@@ -57,7 +60,7 @@ class FuzzedDatagramClientSocket : public DatagramClientSocket {
void OnReadComplete(const net::CompletionCallback& callback, int result);
void OnWriteComplete(const net::CompletionCallback& callback, int result);
- FuzzedDataProvider* data_provider_;
+ base::FuzzedDataProvider* data_provider_;
bool connected_ = false;
bool read_pending_ = false;
« no previous file with comments | « net/socket/socks_client_socket_fuzzer.cc ('k') | net/udp/fuzzed_datagram_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698