OLD | NEW |
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 #include "chrome/browser/net/url_request_slow_http_job.h" | 5 #include "content/browser/net/url_request_slow_http_job.h" |
6 | 6 |
7 #include "base/time.h" | 7 #include "base/time.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "net/url_request/url_request_filter.h" | 9 #include "net/url_request/url_request_filter.h" |
10 | 10 |
11 static const char kMockHostname[] = "mock.slow.http"; | 11 static const char kMockHostname[] = "mock.slow.http"; |
12 | 12 |
13 FilePath URLRequestSlowHTTPJob::base_path_; | 13 FilePath URLRequestSlowHTTPJob::base_path_; |
14 | 14 |
15 // static | 15 // static |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 delay_timer_.Start(TimeDelta::FromMilliseconds(kDelayMs), this, | 53 delay_timer_.Start(TimeDelta::FromMilliseconds(kDelayMs), this, |
54 &URLRequestSlowHTTPJob::RealStart); | 54 &URLRequestSlowHTTPJob::RealStart); |
55 } | 55 } |
56 | 56 |
57 URLRequestSlowHTTPJob::~URLRequestSlowHTTPJob() { | 57 URLRequestSlowHTTPJob::~URLRequestSlowHTTPJob() { |
58 } | 58 } |
59 | 59 |
60 void URLRequestSlowHTTPJob::RealStart() { | 60 void URLRequestSlowHTTPJob::RealStart() { |
61 URLRequestMockHTTPJob::Start(); | 61 URLRequestMockHTTPJob::Start(); |
62 } | 62 } |
OLD | NEW |