Index: content/browser/network_error_request_job.h |
diff --git a/content/browser/network_error_request_job.h b/content/browser/network_error_request_job.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fa04455a7cfb8d5dfae8f2a87524574fccdf68cf |
--- /dev/null |
+++ b/content/browser/network_error_request_job.h |
@@ -0,0 +1,39 @@ |
+// 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.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_NETWORK_ERROR_REQUEST_JOB_H_ |
+#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.
|
+ |
+#include <string> |
+ |
+#include "base/basictypes.h" |
+#include "net/url_request/url_request_simple_job.h" |
+ |
+namespace content { |
+ |
+class NetworkErrorRequestJob : public net::URLRequestSimpleJob { |
+ public: |
+ NetworkErrorRequestJob(net::URLRequest* request, |
+ 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.
|
+ |
+ 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_; |
+ |
+ // Creates a HTML page listing all error codes. |
+ static void ListAllErrorCodes(std::string* data); |
+ |
+ 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.
|
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_NETWORK_ERROR_REQUEST_JOB_H_ |