Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_NET_NETWORK_ERROR_REQUEST_JOB_H_ | |
| 6 #define CONTENT_BROWSER_NET_NETWORK_ERROR_REQUEST_JOB_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
|
Dan Beam
2015/11/19 20:12:52
what is basictypes for?
edwardjung
2015/11/20 16:34:51
Removed
| |
| 11 #include "base/macros.h" | |
| 12 #include "net/url_request/url_request_simple_job.h" | |
| 13 | |
| 14 namespace content { | |
| 15 class URLRequest; | |
| 16 class NetworkDelegate; | |
| 17 | |
| 18 class NetworkErrorRequestJob : public net::URLRequestSimpleJob { | |
| 19 public: | |
| 20 NetworkErrorRequestJob(net::URLRequest* request, | |
| 21 net::NetworkDelegate* network_delegate); | |
| 22 | |
| 23 int GetData(std::string* mime_type, | |
| 24 std::string* charset, | |
| 25 std::string* data, | |
| 26 const net::CompletionCallback& callback) const override; | |
| 27 | |
| 28 private: | |
| 29 ~NetworkErrorRequestJob() override {} | |
| 30 | |
| 31 // The error_code passed in via the path. | |
| 32 int error_code_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(NetworkErrorRequestJob); | |
| 35 }; | |
| 36 | |
| 37 } // namespace content | |
| 38 | |
| 39 #endif // CONTENT_BROWSER_NET_NETWORK_ERROR_REQUEST_JOB_H_ | |
| OLD | NEW |