| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. | 5 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. |
| 6 | 6 |
| 7 #include "webkit/glue/weburlloader_impl.h" | 7 #include "webkit/glue/weburlloader_impl.h" |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "net/base/data_url.h" | 14 #include "net/base/data_url.h" |
| 15 #include "net/base/load_flags.h" | 15 #include "net/base/load_flags.h" |
| 16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
| 17 #include "net/base/net_util.h" | 17 #include "net/base/net_util.h" |
| 18 #include "net/http/http_response_headers.h" | 18 #include "net/http/http_response_headers.h" |
| 19 #include "webkit/api/public/WebHTTPHeaderVisitor.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebHTTPHeaderVisitor.h" |
| 20 #include "webkit/api/public/WebURL.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" |
| 21 #include "webkit/api/public/WebURLError.h" | 21 #include "third_party/WebKit/WebKit/chromium/public/WebURLError.h" |
| 22 #include "webkit/api/public/WebURLLoaderClient.h" | 22 #include "third_party/WebKit/WebKit/chromium/public/WebURLLoaderClient.h" |
| 23 #include "webkit/api/public/WebURLRequest.h" | 23 #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h" |
| 24 #include "webkit/api/public/WebURLResponse.h" | 24 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" |
| 25 #include "webkit/glue/ftp_directory_listing_response_delegate.h" | 25 #include "webkit/glue/ftp_directory_listing_response_delegate.h" |
| 26 #include "webkit/glue/glue_util.h" | 26 #include "webkit/glue/glue_util.h" |
| 27 #include "webkit/glue/multipart_response_delegate.h" | 27 #include "webkit/glue/multipart_response_delegate.h" |
| 28 #include "webkit/glue/resource_loader_bridge.h" | 28 #include "webkit/glue/resource_loader_bridge.h" |
| 29 #include "webkit/glue/webkit_glue.h" | 29 #include "webkit/glue/webkit_glue.h" |
| 30 | 30 |
| 31 using base::Time; | 31 using base::Time; |
| 32 using base::TimeDelta; | 32 using base::TimeDelta; |
| 33 using WebKit::WebData; | 33 using WebKit::WebData; |
| 34 using WebKit::WebHTTPBody; | 34 using WebKit::WebHTTPBody; |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 | 580 |
| 581 void WebURLLoaderImpl::cancel() { | 581 void WebURLLoaderImpl::cancel() { |
| 582 context_->Cancel(); | 582 context_->Cancel(); |
| 583 } | 583 } |
| 584 | 584 |
| 585 void WebURLLoaderImpl::setDefersLoading(bool value) { | 585 void WebURLLoaderImpl::setDefersLoading(bool value) { |
| 586 context_->SetDefersLoading(value); | 586 context_->SetDefersLoading(value); |
| 587 } | 587 } |
| 588 | 588 |
| 589 } // namespace webkit_glue | 589 } // namespace webkit_glue |
| OLD | NEW |