OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 2011, 2012 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 virtual void willSendRequest(ResourceRequest& /*newRequest*/, const Resource
Response& /*redirectResponse*/); | 133 virtual void willSendRequest(ResourceRequest& /*newRequest*/, const Resource
Response& /*redirectResponse*/); |
134 | 134 |
135 virtual void didReceiveResponse(unsigned long, const ResourceResponse&); | 135 virtual void didReceiveResponse(unsigned long, const ResourceResponse&); |
136 virtual void didDownloadData(int /*dataLength*/); | 136 virtual void didDownloadData(int /*dataLength*/); |
137 virtual void didReceiveData(const char*, int /*dataLength*/); | 137 virtual void didReceiveData(const char*, int /*dataLength*/); |
138 virtual void didReceiveCachedMetadata(const char*, int /*dataLength*/); | 138 virtual void didReceiveCachedMetadata(const char*, int /*dataLength*/); |
139 virtual void didFinishLoading(unsigned long /*identifier*/, double /*finishT
ime*/); | 139 virtual void didFinishLoading(unsigned long /*identifier*/, double /*finishT
ime*/); |
140 virtual void didFail(const ResourceError&); | 140 virtual void didFail(const ResourceError&); |
141 virtual void didFailRedirectCheck(); | 141 virtual void didFailRedirectCheck(); |
142 | 142 |
143 virtual bool isDocumentThreadableLoaderClient() { return true; } | |
144 | |
145 // Sets an error to be reported back to the client, asychronously. | 143 // Sets an error to be reported back to the client, asychronously. |
146 void setDelayedError(const ResourceError&); | 144 void setDelayedError(const ResourceError&); |
147 | 145 |
148 // Enables forwarding of error notifications to the WebURLLoaderClient. Thes
e must be | 146 // Enables forwarding of error notifications to the WebURLLoaderClient. Thes
e must be |
149 // deferred until after the call to AssociatedURLLoader::loadAsynchronously(
) completes. | 147 // deferred until after the call to AssociatedURLLoader::loadAsynchronously(
) completes. |
150 void enableErrorNotifications(); | 148 void enableErrorNotifications(); |
151 | 149 |
152 // Stops loading and releases the DocumentThreadableLoader as early as possi
ble. | 150 // Stops loading and releases the DocumentThreadableLoader as early as possi
ble. |
153 void clearClient() { m_client = 0; } | 151 void clearClient() { m_client = 0; } |
154 | 152 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 m_loader->cancel(); | 365 m_loader->cancel(); |
368 } | 366 } |
369 | 367 |
370 void AssociatedURLLoader::setDefersLoading(bool defersLoading) | 368 void AssociatedURLLoader::setDefersLoading(bool defersLoading) |
371 { | 369 { |
372 if (m_loader) | 370 if (m_loader) |
373 m_loader->setDefersLoading(defersLoading); | 371 m_loader->setDefersLoading(defersLoading); |
374 } | 372 } |
375 | 373 |
376 } // namespace blink | 374 } // namespace blink |
OLD | NEW |