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

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

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // This class simulates what wininet does when a dns lookup fails. 4 // This class simulates what wininet does when a dns lookup fails.
5 5
6 #ifndef CONTENT_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_ 6 #ifndef CONTENT_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_
7 #define CONTENT_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_ 7 #define CONTENT_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_
8 #pragma once 8 #pragma once
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "net/url_request/url_request_job.h" 12 #include "net/url_request/url_request_job.h"
13 13
14 class URLRequestFailedDnsJob : public net::URLRequestJob { 14 class URLRequestFailedDnsJob : public net::URLRequestJob {
15 public: 15 public:
16 explicit URLRequestFailedDnsJob(net::URLRequest* request); 16 explicit URLRequestFailedDnsJob(net::URLRequest* request);
17 17
18 virtual void Start(); 18 virtual void Start() OVERRIDE;
19 19
20 static net::URLRequestJob* Factory(net::URLRequest* request, 20 static net::URLRequestJob* Factory(net::URLRequest* request,
21 const std::string& scheme); 21 const std::string& scheme);
22 22
23 // A test URL that can be used in UI tests. 23 // A test URL that can be used in UI tests.
24 CONTENT_EXPORT static const char kTestUrl[]; 24 CONTENT_EXPORT static const char kTestUrl[];
25 25
26 // Adds the testing URLs to the net::URLRequestFilter. 26 // Adds the testing URLs to the net::URLRequestFilter.
27 CONTENT_EXPORT static void AddUrlHandler(); 27 CONTENT_EXPORT static void AddUrlHandler();
28 28
29 private: 29 private:
30 virtual ~URLRequestFailedDnsJob(); 30 virtual ~URLRequestFailedDnsJob();
31 31
32 // Simulate a DNS failure. 32 // Simulate a DNS failure.
33 void StartAsync(); 33 void StartAsync();
34 34
35 base::WeakPtrFactory<URLRequestFailedDnsJob> weak_factory_; 35 base::WeakPtrFactory<URLRequestFailedDnsJob> weak_factory_;
36 }; 36 };
37 37
38 #endif // CONTENT_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_ 38 #endif // CONTENT_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_
OLDNEW
« no previous file with comments | « content/browser/net/browser_online_state_observer.h ('k') | content/browser/net/url_request_mock_http_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698