| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // before didFinishLoading(), including synchronous inside one of the other | 89 // before didFinishLoading(), including synchronous inside one of the other |
| 90 // callbacks via ResourceLoader::cancel() | 90 // callbacks via ResourceLoader::cancel() |
| 91 bool willFollowRedirect(WebURLRequest&, | 91 bool willFollowRedirect(WebURLRequest&, |
| 92 const WebURLResponse& redirectResponse) override; | 92 const WebURLResponse& redirectResponse) override; |
| 93 void didSendData(unsigned long long bytesSent, | 93 void didSendData(unsigned long long bytesSent, |
| 94 unsigned long long totalBytesToBeSent) override; | 94 unsigned long long totalBytesToBeSent) override; |
| 95 void didReceiveResponse(const WebURLResponse&) override; | 95 void didReceiveResponse(const WebURLResponse&) override; |
| 96 void didReceiveResponse(const WebURLResponse&, | 96 void didReceiveResponse(const WebURLResponse&, |
| 97 std::unique_ptr<WebDataConsumerHandle>) override; | 97 std::unique_ptr<WebDataConsumerHandle>) override; |
| 98 void didReceiveCachedMetadata(const char* data, int length) override; | 98 void didReceiveCachedMetadata(const char* data, int length) override; |
| 99 void didReceiveData(const char*, int, int encodedDataLength) override; | 99 void didReceiveData(const char*, int) override; |
| 100 void didReceiveTransferSizeUpdate(int transferSizeDiff) override; |
| 100 void didDownloadData(int, int) override; | 101 void didDownloadData(int, int) override; |
| 101 void didFinishLoading(double finishTime, | 102 void didFinishLoading(double finishTime, |
| 102 int64_t encodedDataLength, | 103 int64_t encodedDataLength, |
| 103 int64_t encodedBodyLength) override; | 104 int64_t encodedBodyLength) override; |
| 104 void didFail(const WebURLError&, | 105 void didFail(const WebURLError&, |
| 105 int64_t encodedDataLength, | 106 int64_t encodedDataLength, |
| 106 int64_t encodedBodyLength) override; | 107 int64_t encodedBodyLength) override; |
| 107 | 108 |
| 108 void didFinishLoadingFirstPartInMultipart(); | 109 void didFinishLoadingFirstPartInMultipart(); |
| 109 void didFail(const ResourceError&); | 110 void didFail(const ResourceError&); |
| 110 | 111 |
| 111 private: | 112 private: |
| 112 // Assumes ResourceFetcher and Resource are non-null. | 113 // Assumes ResourceFetcher and Resource are non-null. |
| 113 ResourceLoader(ResourceFetcher*, Resource*); | 114 ResourceLoader(ResourceFetcher*, Resource*); |
| 114 | 115 |
| 115 void cancelForRedirectAccessCheckError(const KURL&); | 116 void cancelForRedirectAccessCheckError(const KURL&); |
| 116 void requestSynchronously(const ResourceRequest&); | 117 void requestSynchronously(const ResourceRequest&); |
| 117 | 118 |
| 118 std::unique_ptr<WebURLLoader> m_loader; | 119 std::unique_ptr<WebURLLoader> m_loader; |
| 119 Member<ResourceFetcher> m_fetcher; | 120 Member<ResourceFetcher> m_fetcher; |
| 120 Member<Resource> m_resource; | 121 Member<Resource> m_resource; |
| 121 bool m_isCacheAwareLoadingActivated; | 122 bool m_isCacheAwareLoadingActivated; |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace blink | 125 } // namespace blink |
| 125 | 126 |
| 126 #endif | 127 #endif |
| OLD | NEW |