| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 const char* data, | 102 const char* data, |
| 103 int dataLength) {} | 103 int dataLength) {} |
| 104 | 104 |
| 105 // Called when the load completes successfully. | 105 // Called when the load completes successfully. |
| 106 // |totalEncodedDataLength| may be equal to kUnknownEncodedDataLength. | 106 // |totalEncodedDataLength| may be equal to kUnknownEncodedDataLength. |
| 107 virtual void didFinishLoading(WebURLLoader* loader, | 107 virtual void didFinishLoading(WebURLLoader* loader, |
| 108 double finishTime, | 108 double finishTime, |
| 109 int64_t totalEncodedDataLength) {} | 109 int64_t totalEncodedDataLength) {} |
| 110 | 110 |
| 111 // Called when the load completes with an error. | 111 // Called when the load completes with an error. |
| 112 virtual void didFail(WebURLLoader*, const WebURLError&) {} | 112 // |totalEncodedDataLength| may be equal to kUnknownEncodedDataLength. |
| 113 virtual void didFail(WebURLLoader*, |
| 114 const WebURLError&, |
| 115 int64_t totalEncodedDataLength) {} |
| 113 | 116 |
| 114 // Value passed to didFinishLoading when total encoded data length isn't | 117 // Value passed to didFinishLoading when total encoded data length isn't |
| 115 // known. | 118 // known. |
| 116 static const int64_t kUnknownEncodedDataLength = -1; | 119 static const int64_t kUnknownEncodedDataLength = -1; |
| 117 | 120 |
| 118 protected: | 121 protected: |
| 119 virtual ~WebURLLoaderClient() {} | 122 virtual ~WebURLLoaderClient() {} |
| 120 }; | 123 }; |
| 121 | 124 |
| 122 } // namespace blink | 125 } // namespace blink |
| 123 | 126 |
| 124 #endif | 127 #endif |
| OLD | NEW |