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

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

Issue 3179017: FBTF: Remove "obviously" unneeded standard C++ library #includes. (Closed)
Patch Set: fixed mac oopsie Created 10 years, 4 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
« no previous file with comments | « chrome/browser/net/referrer.h ('k') | chrome/browser/notifications/balloon.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 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
11 #include <string>
12
13 #include "base/timer.h" 11 #include "base/timer.h"
14 #include "chrome/browser/net/url_request_mock_http_job.h" 12 #include "chrome/browser/net/url_request_mock_http_job.h"
15 13
16 class URLRequestSlowHTTPJob : public URLRequestMockHTTPJob { 14 class URLRequestSlowHTTPJob : public URLRequestMockHTTPJob {
17 public: 15 public:
18 URLRequestSlowHTTPJob(URLRequest* request, const FilePath& file_path); 16 URLRequestSlowHTTPJob(URLRequest* request, const FilePath& file_path);
19 17
20 static const int kDelayMs; 18 static const int kDelayMs;
21 19
22 static URLRequest::ProtocolFactory Factory; 20 static URLRequest::ProtocolFactory Factory;
(...skipping 12 matching lines...) Expand all
35 void RealStart(); 33 void RealStart();
36 34
37 base::OneShotTimer<URLRequestSlowHTTPJob> delay_timer_; 35 base::OneShotTimer<URLRequestSlowHTTPJob> delay_timer_;
38 36
39 // 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
40 // root of the http server. 38 // root of the http server.
41 static FilePath base_path_; 39 static FilePath base_path_;
42 }; 40 };
43 41
44 #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/referrer.h ('k') | chrome/browser/notifications/balloon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698