| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 virtual bool isDocumentThreadableLoaderClient() { return true; } | 144 virtual bool isDocumentThreadableLoaderClient() { return true; } |
| 145 | 145 |
| 146 // Sets an error to be reported back to the client, asychronously. | 146 // Sets an error to be reported back to the client, asychronously. |
| 147 void setDelayedError(const ResourceError&); | 147 void setDelayedError(const ResourceError&); |
| 148 | 148 |
| 149 // Enables forwarding of error notifications to the WebURLLoaderClient. Thes
e must be | 149 // Enables forwarding of error notifications to the WebURLLoaderClient. Thes
e must be |
| 150 // deferred until after the call to AssociatedURLLoader::loadAsynchronously(
) completes. | 150 // deferred until after the call to AssociatedURLLoader::loadAsynchronously(
) completes. |
| 151 void enableErrorNotifications(); | 151 void enableErrorNotifications(); |
| 152 | 152 |
| 153 // Stops loading and releases the DocumentThreadableLoader as early as possi
ble. | 153 // Stops loading and releases the DocumentThreadableLoader as early as possi
ble. |
| 154 void clearClient() { m_client = 0; } | 154 void clearClient() { m_client = 0; } |
| 155 | 155 |
| 156 private: | 156 private: |
| 157 ClientAdapter(AssociatedURLLoader*, WebURLLoaderClient*, const WebURLLoaderO
ptions&); | 157 ClientAdapter(AssociatedURLLoader*, WebURLLoaderClient*, const WebURLLoaderO
ptions&); |
| 158 | 158 |
| 159 void notifyError(Timer<ClientAdapter>*); | 159 void notifyError(Timer<ClientAdapter>*); |
| 160 | 160 |
| 161 AssociatedURLLoader* m_loader; | 161 AssociatedURLLoader* m_loader; |
| 162 WebURLLoaderClient* m_client; | 162 WebURLLoaderClient* m_client; |
| 163 WebURLLoaderOptions m_options; | 163 WebURLLoaderOptions m_options; |
| 164 WebURLError m_error; | 164 WebURLError m_error; |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 m_loader->cancel(); | 365 m_loader->cancel(); |
| 366 } | 366 } |
| 367 | 367 |
| 368 void AssociatedURLLoader::setDefersLoading(bool defersLoading) | 368 void AssociatedURLLoader::setDefersLoading(bool defersLoading) |
| 369 { | 369 { |
| 370 if (m_loader) | 370 if (m_loader) |
| 371 m_loader->setDefersLoading(defersLoading); | 371 m_loader->setDefersLoading(defersLoading); |
| 372 } | 372 } |
| 373 | 373 |
| 374 } // namespace WebKit | 374 } // namespace WebKit |
| OLD | NEW |