Merge mozilla-central to autoland. CLOSED TREE
[gecko.git] / netwerk / base / FuzzyLayer.h
blob6b8109f949915646eb3fa123383a12cfdf3e7959
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef FuzzyLayer_h__
8 #define FuzzyLayer_h__
10 #include "prerror.h"
11 #include "nsError.h"
12 #include "nsIFile.h"
14 namespace mozilla {
15 namespace net {
17 nsresult AttachFuzzyIOLayer(PRFileDesc* fd);
19 extern Atomic<bool> gFuzzingConnClosed;
20 bool signalNetworkFuzzingDone();
22 void addNetworkFuzzingBuffer(const uint8_t* data, size_t size,
23 bool readFirst = false,
24 bool useIsOptional = false);
26 } // namespace net
27 } // namespace mozilla
29 #endif // FuzzyLayer_h__