Chromium Code Reviews| Index: content/browser/net/network_error_request_job.h |
| diff --git a/content/browser/net/network_error_request_job.h b/content/browser/net/network_error_request_job.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2be0358bb0fe12965c17b0ed3c6aced63f476d7d |
| --- /dev/null |
| +++ b/content/browser/net/network_error_request_job.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2015 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 CONTENT_BROWSER_NET_NETWORK_ERROR_REQUEST_JOB_H_ |
| +#define CONTENT_BROWSER_NET_NETWORK_ERROR_REQUEST_JOB_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/basictypes.h" |
|
Dan Beam
2015/11/19 20:12:52
what is basictypes for?
edwardjung
2015/11/20 16:34:51
Removed
|
| +#include "base/macros.h" |
| +#include "net/url_request/url_request_simple_job.h" |
| + |
| +namespace content { |
| +class URLRequest; |
| +class NetworkDelegate; |
| + |
| +class NetworkErrorRequestJob : public net::URLRequestSimpleJob { |
| + public: |
| + NetworkErrorRequestJob(net::URLRequest* request, |
| + net::NetworkDelegate* network_delegate); |
| + |
| + int GetData(std::string* mime_type, |
| + std::string* charset, |
| + std::string* data, |
| + const net::CompletionCallback& callback) const override; |
| + |
| + private: |
| + ~NetworkErrorRequestJob() override {} |
| + |
| + // The error_code passed in via the path. |
| + int error_code_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(NetworkErrorRequestJob); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_NET_NETWORK_ERROR_REQUEST_JOB_H_ |