OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This file replaces WebCore/platform/network/win/ResourceHandleWin.cpp with a | 5 // This file replaces WebCore/platform/network/win/ResourceHandleWin.cpp with a |
6 // platform-neutral implementation that simply defers almost entirely to | 6 // platform-neutral implementation that simply defers almost entirely to |
7 // ResouceLoaderBridge. | 7 // ResouceLoaderBridge. |
8 // | 8 // |
9 // This uses the same ResourceHandle.h header file that the rest of WebKit | 9 // This uses the same ResourceHandle.h header file that the rest of WebKit |
10 // uses, allowing us to avoid complicated changes. Our specific things are | 10 // uses, allowing us to avoid complicated changes. Our specific things are |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "base/string_tokenizer.h" | 50 #include "base/string_tokenizer.h" |
51 #include "webkit/glue/feed_preview.h" | 51 #include "webkit/glue/feed_preview.h" |
52 #include "webkit/glue/glue_util.h" | 52 #include "webkit/glue/glue_util.h" |
53 #include "webkit/glue/multipart_response_delegate.h" | 53 #include "webkit/glue/multipart_response_delegate.h" |
54 #include "webkit/glue/resource_loader_bridge.h" | 54 #include "webkit/glue/resource_loader_bridge.h" |
55 #include "webkit/glue/webframe_impl.h" | 55 #include "webkit/glue/webframe_impl.h" |
56 #include "net/base/data_url.h" | 56 #include "net/base/data_url.h" |
57 #include "net/base/net_errors.h" | 57 #include "net/base/net_errors.h" |
58 #include "net/base/net_util.h" | 58 #include "net/base/net_util.h" |
59 #include "net/base/load_flags.h" | 59 #include "net/base/load_flags.h" |
| 60 #include "net/http/http_response_headers.h" |
60 | 61 |
61 using webkit_glue::ResourceLoaderBridge; | 62 using webkit_glue::ResourceLoaderBridge; |
62 using base::Time; | 63 using base::Time; |
63 using base::TimeDelta; | 64 using base::TimeDelta; |
64 using net::HttpResponseHeaders; | 65 using net::HttpResponseHeaders; |
65 | 66 |
66 namespace WebCore { | 67 namespace WebCore { |
67 | 68 |
68 static ResourceType::Type FromTargetType(ResourceRequest::TargetType type) { | 69 static ResourceType::Type FromTargetType(ResourceRequest::TargetType type) { |
69 switch (type) { | 70 switch (type) { |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 // if the request cannot be serviced from cache. We force the 'DontLoad' | 765 // if the request cannot be serviced from cache. We force the 'DontLoad' |
765 // cache policy at this point to ensure that we never hit the network for | 766 // cache policy at this point to ensure that we never hit the network for |
766 // this request. | 767 // this request. |
767 // | 768 // |
768 DCHECK(request.httpMethod() == "POST"); | 769 DCHECK(request.httpMethod() == "POST"); |
769 request.setCachePolicy(ReturnCacheDataDontLoad); | 770 request.setCachePolicy(ReturnCacheDataDontLoad); |
770 return true; | 771 return true; |
771 } | 772 } |
772 | 773 |
773 } // namespace WebCore | 774 } // namespace WebCore |
OLD | NEW |