| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 if (m_client) | 62 if (m_client) |
| 63 m_client->didSendData(bytesSent, totalBytesToBeSent); | 63 m_client->didSendData(bytesSent, totalBytesToBeSent); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void didReceiveResponse(unsigned long identifier, const ResourceResponse& re
sponse) | 66 void didReceiveResponse(unsigned long identifier, const ResourceResponse& re
sponse) |
| 67 { | 67 { |
| 68 if (m_client) | 68 if (m_client) |
| 69 m_client->didReceiveResponse(identifier, response); | 69 m_client->didReceiveResponse(identifier, response); |
| 70 } | 70 } |
| 71 | 71 |
| 72 void didReceiveData(const char* data, int dataLength) | 72 void didReceiveData(const char* data, unsigned dataLength) |
| 73 { | 73 { |
| 74 if (m_client) | 74 if (m_client) |
| 75 m_client->didReceiveData(data, dataLength); | 75 m_client->didReceiveData(data, dataLength); |
| 76 } | 76 } |
| 77 | 77 |
| 78 void didReceiveCachedMetadata(const char* data, int dataLength) | 78 void didReceiveCachedMetadata(const char* data, int dataLength) |
| 79 { | 79 { |
| 80 if (m_client) | 80 if (m_client) |
| 81 m_client->didReceiveCachedMetadata(data, dataLength); | 81 m_client->didReceiveCachedMetadata(data, dataLength); |
| 82 } | 82 } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 { | 131 { |
| 132 } | 132 } |
| 133 | 133 |
| 134 ThreadableLoaderClient* m_client; | 134 ThreadableLoaderClient* m_client; |
| 135 bool m_done; | 135 bool m_done; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace blink | 138 } // namespace blink |
| 139 | 139 |
| 140 #endif // ThreadableLoaderClientWrapper_h | 140 #endif // ThreadableLoaderClientWrapper_h |
| OLD | NEW |