Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Side by Side Diff: content/browser/net/network_error_request_job.h

Issue 1421743002: Implement chrome://network-errors for direct access to network error interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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/macros.h"
11 #include "net/url_request/url_request_simple_job.h"
12
13 namespace content {
14 class URLRequest;
15 class NetworkDelegate;
16
17 class NetworkErrorRequestJob : public net::URLRequestSimpleJob {
mmenke 2015/11/24 22:42:35 I think we can get rid of this class, and use URLR
edwardjung 2015/11/26 16:12:16 Done.
18 public:
19 NetworkErrorRequestJob(net::URLRequest* request,
20 net::NetworkDelegate* network_delegate);
21
22 int GetData(std::string* mime_type,
23 std::string* charset,
24 std::string* data,
25 const net::CompletionCallback& callback) const override;
26
27 private:
28 ~NetworkErrorRequestJob() override {}
29
30 // The error_code passed in via the path.
31 int error_code_;
32
33 DISALLOW_COPY_AND_ASSIGN(NetworkErrorRequestJob);
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_BROWSER_NET_NETWORK_ERROR_REQUEST_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698