| Index: net/http/failing_http_transaction_factory.h
|
| diff --git a/net/http/failing_http_transaction_factory.h b/net/http/failing_http_transaction_factory.h
|
| deleted file mode 100644
|
| index dd4a811151d3931a81e5ea05a6287bc4317c96f7..0000000000000000000000000000000000000000
|
| --- a/net/http/failing_http_transaction_factory.h
|
| +++ /dev/null
|
| @@ -1,41 +0,0 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#ifndef NET_FAILING_HTTP_TRANSACTION_FACTORY_H_
|
| -#define NET_FAILING_HTTP_TRANSACTION_FACTORY_H_
|
| -
|
| -#include "base/memory/scoped_ptr.h"
|
| -#include "net/base/net_errors.h"
|
| -#include "net/base/request_priority.h"
|
| -#include "net/http/http_transaction.h"
|
| -#include "net/http/http_transaction_factory.h"
|
| -
|
| -namespace net {
|
| -
|
| -class HttpCache;
|
| -class HttpNetworkSession;
|
| -
|
| -// Creates transactions that always (asynchronously) return a specified
|
| -// error. The error is returned asynchronously, just after the transaction is
|
| -// started.
|
| -class NET_EXPORT FailingHttpTransactionFactory : public HttpTransactionFactory {
|
| - public:
|
| - // The caller must guarantee that |session| outlives this object.
|
| - FailingHttpTransactionFactory(HttpNetworkSession* session, Error error);
|
| - ~FailingHttpTransactionFactory() override;
|
| -
|
| - // HttpTransactionFactory:
|
| - int CreateTransaction(RequestPriority priority,
|
| - scoped_ptr<HttpTransaction>* trans) override;
|
| - HttpCache* GetCache() override;
|
| - HttpNetworkSession* GetSession() override;
|
| -
|
| - private:
|
| - HttpNetworkSession* session_;
|
| - Error error_;
|
| -};
|
| -
|
| -} // namespace net
|
| -
|
| -#endif // NET_FAILING_HTTP_TRANSACTION_FACTORY_H_
|
|
|