OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/fetchers/resource_fetcher.h" | 5 #include "content/renderer/fetchers/resource_fetcher.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" | 8 #include "third_party/WebKit/public/platform/Platform.h" |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 9 #include "third_party/WebKit/public/platform/WebURL.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h" | 10 #include "third_party/WebKit/public/platform/WebURLError.h" |
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLLoader.h" | 11 #include "third_party/WebKit/public/platform/WebURLLoader.h" |
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" | 12 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
16 | 16 |
17 using base::TimeDelta; | 17 using base::TimeDelta; |
18 using WebKit::WebFrame; | 18 using WebKit::WebFrame; |
19 using WebKit::WebURLError; | 19 using WebKit::WebURLError; |
20 using WebKit::WebURLLoader; | 20 using WebKit::WebURLLoader; |
21 using WebKit::WebURLRequest; | 21 using WebKit::WebURLRequest; |
22 using WebKit::WebURLResponse; | 22 using WebKit::WebURLResponse; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 } | 136 } |
137 | 137 |
138 void ResourceFetcherWithTimeout::TimeoutFired() { | 138 void ResourceFetcherWithTimeout::TimeoutFired() { |
139 if (!completed_) { | 139 if (!completed_) { |
140 loader_->cancel(); | 140 loader_->cancel(); |
141 didFail(NULL, WebURLError()); | 141 didFail(NULL, WebURLError()); |
142 } | 142 } |
143 } | 143 } |
144 | 144 |
145 } // namespace content | 145 } // namespace content |
OLD | NEW |