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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // Called to report upload progress. The bytes reported correspond to | 47 // Called to report upload progress. The bytes reported correspond to |
48 // the HTTP message body. | 48 // the HTTP message body. |
49 virtual void didSendData( | 49 virtual void didSendData( |
50 WebURLLoader*, unsigned long long bytesSent, unsigned long long totalBytesToBeSent) = 0; | 50 WebURLLoader*, unsigned long long bytesSent, unsigned long long totalBytesToBeSent) = 0; |
51 | 51 |
52 // Called when response headers are received. | 52 // Called when response headers are received. |
53 virtual void didReceiveResponse(WebURLLoader*, const WebURLResponse&) = 0; | 53 virtual void didReceiveResponse(WebURLLoader*, const WebURLResponse&) = 0; |
54 | 54 |
55 // Called when a chunk of response data is received. | 55 // Called when a chunk of response data is received. |
56 virtual void didReceiveData(WebURLLoader*, const char* data, int dataLength, long long totalDataLength) = 0; | 56 virtual void didReceiveData(WebURLLoader*, const char* data, int dataLength) = 0; |
57 | 57 |
58 // Called when the load completes successfully. | 58 // Called when the load completes successfully. |
59 virtual void didFinishLoading(WebURLLoader*) = 0; | 59 virtual void didFinishLoading(WebURLLoader*) = 0; |
60 | 60 |
61 // Called when the load completes with an error. | 61 // Called when the load completes with an error. |
62 virtual void didFail(WebURLLoader*, const WebURLError&) = 0; | 62 virtual void didFail(WebURLLoader*, const WebURLError&) = 0; |
63 | 63 |
64 protected: | 64 protected: |
65 ~WebURLLoaderClient() { } | 65 ~WebURLLoaderClient() { } |
66 }; | 66 }; |
67 | 67 |
68 } // namespace WebKit | 68 } // namespace WebKit |
69 | 69 |
70 #endif | 70 #endif |
OLD | NEW |