| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // 0+ didSendData() | 68 // 0+ didSendData() |
| 69 // 1 didReceiveResponse() | 69 // 1 didReceiveResponse() |
| 70 // 0-1 didReceiveCachedMetadata() | 70 // 0-1 didReceiveCachedMetadata() |
| 71 // 0+ didReceiveData() or didDownloadData(), but never both | 71 // 0+ didReceiveData() or didDownloadData(), but never both |
| 72 // 1 didFinishLoading() | 72 // 1 didFinishLoading() |
| 73 // A failed load is indicated by 1 didFail(), which can occur at any time | 73 // A failed load is indicated by 1 didFail(), which can occur at any time |
| 74 // before didFinishLoading(), including synchronous inside one of the other | 74 // before didFinishLoading(), including synchronous inside one of the other |
| 75 // callbacks via ResourceLoader::cancel() | 75 // callbacks via ResourceLoader::cancel() |
| 76 void willFollowRedirect(WebURLLoader*, | 76 void willFollowRedirect(WebURLLoader*, |
| 77 WebURLRequest&, | 77 WebURLRequest&, |
| 78 const WebURLResponse& redirectResponse, | 78 const WebURLResponse& redirectResponse) override; |
| 79 int64_t encodedDataLength) override; | |
| 80 void didSendData(WebURLLoader*, | 79 void didSendData(WebURLLoader*, |
| 81 unsigned long long bytesSent, | 80 unsigned long long bytesSent, |
| 82 unsigned long long totalBytesToBeSent) override; | 81 unsigned long long totalBytesToBeSent) override; |
| 83 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) override; | 82 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) override; |
| 84 void didReceiveResponse(WebURLLoader*, | 83 void didReceiveResponse(WebURLLoader*, |
| 85 const WebURLResponse&, | 84 const WebURLResponse&, |
| 86 WebDataConsumerHandle*) override; | 85 WebDataConsumerHandle*) override; |
| 87 void didReceiveCachedMetadata(WebURLLoader*, | 86 void didReceiveCachedMetadata(WebURLLoader*, |
| 88 const char* data, | 87 const char* data, |
| 89 int length) override; | 88 int length) override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 107 void requestSynchronously(const ResourceRequest&); | 106 void requestSynchronously(const ResourceRequest&); |
| 108 | 107 |
| 109 std::unique_ptr<WebURLLoader> m_loader; | 108 std::unique_ptr<WebURLLoader> m_loader; |
| 110 Member<ResourceFetcher> m_fetcher; | 109 Member<ResourceFetcher> m_fetcher; |
| 111 Member<Resource> m_resource; | 110 Member<Resource> m_resource; |
| 112 }; | 111 }; |
| 113 | 112 |
| 114 } // namespace blink | 113 } // namespace blink |
| 115 | 114 |
| 116 #endif | 115 #endif |
| OLD | NEW |