Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
|
mmenke
2015/10/22 15:41:31
(c) not needed in new files.
edwardjung
2015/11/06 12:05:51
Done.
| |
| 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_NETWORK_ERROR_REQUEST_JOB_H_ | |
| 6 #define CONTENT_BROWSER_NETWORK_ERROR_REQUEST_JOB_H_ | |
|
mmenke
2015/10/22 15:41:31
This file should probably be in content/browser/ne
edwardjung
2015/11/06 12:05:51
Done.
| |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "net/url_request/url_request_simple_job.h" | |
| 12 | |
| 13 namespace content { | |
| 14 | |
| 15 class NetworkErrorRequestJob : public net::URLRequestSimpleJob { | |
| 16 public: | |
| 17 NetworkErrorRequestJob(net::URLRequest* request, | |
| 18 net::NetworkDelegate* network_delegate); | |
|
mmenke
2015/10/22 15:41:31
Should probably forward declare URLRequest and Net
edwardjung
2015/11/06 12:05:51
Done.
| |
| 19 | |
| 20 int GetData(std::string* mime_type, | |
| 21 std::string* charset, | |
| 22 std::string* data, | |
| 23 const net::CompletionCallback& callback) const override; | |
| 24 | |
| 25 private: | |
| 26 ~NetworkErrorRequestJob() override {} | |
| 27 | |
| 28 // The error_code passed in via the path. | |
| 29 int error_code_; | |
| 30 | |
| 31 // Creates a HTML page listing all error codes. | |
| 32 static void ListAllErrorCodes(std::string* data); | |
| 33 | |
| 34 DISALLOW_IMPLICIT_CONSTRUCTORS(NetworkErrorRequestJob); | |
|
mmenke
2015/10/22 15:41:31
include macros.h
DISALLOW_COPY_AND_ASSIGN?
edwardjung
2015/11/06 12:05:51
Done.
| |
| 35 }; | |
| 36 | |
| 37 } // namespace content | |
| 38 | |
| 39 #endif // CONTENT_BROWSER_NETWORK_ERROR_REQUEST_JOB_H_ | |
| OLD | NEW |