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

Side by Side Diff: chrome/browser/net/url_request_slow_http_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 // 4 //
5 // A URLRequestMockHTTPJob class that inserts a time delay in processing. 5 // A URLRequestMockHTTPJob class that inserts a time delay in processing.
6 6
7 #ifndef CHROME_BROWSER_NET_URL_REQUEST_SLOW_HTTP_JOB_H_ 7 #ifndef CHROME_BROWSER_NET_URL_REQUEST_SLOW_HTTP_JOB_H_
8 #define CHROME_BROWSER_NET_URL_REQUEST_SLOW_HTTP_JOB_H_ 8 #define CHROME_BROWSER_NET_URL_REQUEST_SLOW_HTTP_JOB_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 // Adds the testing URLs to the net::URLRequestFilter. 22 // Adds the testing URLs to the net::URLRequestFilter.
23 static void AddUrlHandler(const FilePath& base_path); 23 static void AddUrlHandler(const FilePath& base_path);
24 24
25 // Given the path to a file relative to base_path_, construct a mock URL. 25 // Given the path to a file relative to base_path_, construct a mock URL.
26 static GURL GetMockUrl(const FilePath& path); 26 static GURL GetMockUrl(const FilePath& path);
27 27
28 virtual void Start(); 28 virtual void Start();
29 29
30 private: 30 private:
31 ~URLRequestSlowHTTPJob(); 31 virtual ~URLRequestSlowHTTPJob();
32 32
33 void RealStart(); 33 void RealStart();
34 34
35 base::OneShotTimer<URLRequestSlowHTTPJob> delay_timer_; 35 base::OneShotTimer<URLRequestSlowHTTPJob> delay_timer_;
36 36
37 // This is the file path leading to the root of the directory to use as the 37 // This is the file path leading to the root of the directory to use as the
38 // root of the http server. 38 // root of the http server.
39 static FilePath base_path_; 39 static FilePath base_path_;
40 }; 40 };
41 41
42 #endif // CHROME_BROWSER_NET_URL_REQUEST_SLOW_HTTP_JOB_H_ 42 #endif // CHROME_BROWSER_NET_URL_REQUEST_SLOW_HTTP_JOB_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/url_request_mock_net_error_job.h ('k') | chrome/browser/omnibox_search_hint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698