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

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

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 months 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_ 6 #ifndef CHROME_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_
7 #define CHROME_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_ 7 #define CHROME_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_
8 #pragma once 8 #pragma once
9 9
10 #include "base/task.h" 10 #include "base/task.h"
11 #include "net/url_request/url_request_job.h" 11 #include "net/url_request/url_request_job.h"
12 12
13 class URLRequestFailedDnsJob : public net::URLRequestJob { 13 class URLRequestFailedDnsJob : public net::URLRequestJob {
14 public: 14 public:
15 explicit URLRequestFailedDnsJob(net::URLRequest* request); 15 explicit URLRequestFailedDnsJob(net::URLRequest* request);
16 16
17 virtual void Start(); 17 virtual void Start();
18 18
19 static net::URLRequestJob* Factory(net::URLRequest* request, 19 static net::URLRequestJob* Factory(net::URLRequest* request,
20 const std::string& scheme); 20 const std::string& scheme);
21 21
22 // A test URL that can be used in UI tests. 22 // A test URL that can be used in UI tests.
23 static const char kTestUrl[]; 23 static const char kTestUrl[];
24 24
25 // Adds the testing URLs to the net::URLRequestFilter. 25 // Adds the testing URLs to the net::URLRequestFilter.
26 static void AddUrlHandler(); 26 static void AddUrlHandler();
27 27
28 private: 28 private:
29 ~URLRequestFailedDnsJob(); 29 virtual ~URLRequestFailedDnsJob();
30 30
31 // Simulate a DNS failure. 31 // Simulate a DNS failure.
32 void StartAsync(); 32 void StartAsync();
33 33
34 ScopedRunnableMethodFactory<URLRequestFailedDnsJob> method_factory_; 34 ScopedRunnableMethodFactory<URLRequestFailedDnsJob> method_factory_;
35 }; 35 };
36 36
37 #endif // CHROME_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_ 37 #endif // CHROME_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/passive_log_collector.h ('k') | chrome/browser/net/url_request_mock_link_doctor_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698