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

Unified Diff: net/socket/fuzzed_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/http/http_stream_parser_fuzzer.cc ('k') | net/socket/fuzzed_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/fuzzed_socket.h
diff --git a/net/socket/fuzzed_socket.h b/net/socket/fuzzed_socket.h
index 90325547e7bf2be7b5d2b7b82c7e764b2225048d..b46b10bb7a9be4cf4aef1338a526d63a0868c558 100644
--- a/net/socket/fuzzed_socket.h
+++ b/net/socket/fuzzed_socket.h
@@ -16,9 +16,12 @@
#include "net/log/net_log.h"
#include "net/socket/stream_socket.h"
+namespace base {
+class FuzzedDataProvider;
+}
+
namespace net {
-class FuzzedDataProvider;
class IPEndPoint;
class IOBuffer;
@@ -38,7 +41,7 @@ class FuzzedSocket : public StreamSocket {
public:
// |data_provider| is used as to determine behavior of the FuzzedSocket. It
// must remain valid until after the FuzzedSocket is destroyed.
- FuzzedSocket(FuzzedDataProvider* data_provider, net::NetLog* net_log);
+ FuzzedSocket(base::FuzzedDataProvider* data_provider, net::NetLog* net_log);
~FuzzedSocket() override;
// If set to true, the socket will fuzz the result of the Connect() call.
@@ -92,7 +95,7 @@ class FuzzedSocket : public StreamSocket {
void OnWriteComplete(const CompletionCallback& callback, int result);
void OnConnectComplete(const CompletionCallback& callback, int result);
- FuzzedDataProvider* data_provider_;
+ base::FuzzedDataProvider* data_provider_;
// If true, the result of the Connect() call is fuzzed - it can succeed or
// fail with a variety of connection errors, and it can complete synchronously
« no previous file with comments | « net/http/http_stream_parser_fuzzer.cc ('k') | net/socket/fuzzed_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698