OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) override; | 97 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) override; |
98 void didReceiveResponse(WebURLLoader*, | 98 void didReceiveResponse(WebURLLoader*, |
99 const WebURLResponse&, | 99 const WebURLResponse&, |
100 std::unique_ptr<WebDataConsumerHandle>) override; | 100 std::unique_ptr<WebDataConsumerHandle>) override; |
101 void didReceiveCachedMetadata(WebURLLoader*, | 101 void didReceiveCachedMetadata(WebURLLoader*, |
102 const char* data, | 102 const char* data, |
103 int length) override; | 103 int length) override; |
104 void didReceiveData(WebURLLoader*, | 104 void didReceiveData(WebURLLoader*, |
105 const char*, | 105 const char*, |
106 int, | 106 int, |
107 int encodedDataLength, | 107 int encodedDataLength) override; |
108 int encodedBodyLength) override; | |
109 void didDownloadData(WebURLLoader*, int, int) override; | 108 void didDownloadData(WebURLLoader*, int, int) override; |
110 void didFinishLoading(WebURLLoader*, | 109 void didFinishLoading(WebURLLoader*, |
111 double finishTime, | 110 double finishTime, |
112 int64_t encodedDataLength) override; | 111 int64_t encodedDataLength, |
| 112 int64_t encodedBodyLength) override; |
113 void didFail(WebURLLoader*, | 113 void didFail(WebURLLoader*, |
114 const WebURLError&, | 114 const WebURLError&, |
115 int64_t encodedDataLength) override; | 115 int64_t encodedDataLength, |
| 116 int64_t encodedBodyLength) override; |
116 | 117 |
117 void didFinishLoadingFirstPartInMultipart(); | 118 void didFinishLoadingFirstPartInMultipart(); |
118 void didFail(const ResourceError&); | 119 void didFail(const ResourceError&); |
119 | 120 |
120 private: | 121 private: |
121 // Assumes ResourceFetcher and Resource are non-null. | 122 // Assumes ResourceFetcher and Resource are non-null. |
122 ResourceLoader(ResourceFetcher*, Resource*); | 123 ResourceLoader(ResourceFetcher*, Resource*); |
123 | 124 |
124 void cancelForRedirectAccessCheckError(const KURL&); | 125 void cancelForRedirectAccessCheckError(const KURL&); |
125 void requestSynchronously(const ResourceRequest&); | 126 void requestSynchronously(const ResourceRequest&); |
126 | 127 |
127 std::unique_ptr<WebURLLoader> m_loader; | 128 std::unique_ptr<WebURLLoader> m_loader; |
128 Member<ResourceFetcher> m_fetcher; | 129 Member<ResourceFetcher> m_fetcher; |
129 Member<Resource> m_resource; | 130 Member<Resource> m_resource; |
130 bool m_isCacheAwareLoadingActivated; | 131 bool m_isCacheAwareLoadingActivated; |
131 }; | 132 }; |
132 | 133 |
133 } // namespace blink | 134 } // namespace blink |
134 | 135 |
135 #endif | 136 #endif |
OLD | NEW |