mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
libcef:
- Fix incorrect result in CefBytesReader::Seek() when SEEK_END argument is specified. - Return 0 from CefBytesReader::Seek() on success to be consistent with fseek(). - Set URLRequestStatus error code to net::ERR_ABORTED in browser_resource_loader_bridge.cc when HandleBeforeResourceLoad returns RV_HANDLED to avoid a WebKit assert. unittests: - Add unit testing framework. - Add initial unit tests for request, stream and V8. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@52 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -787,7 +787,8 @@ public:
|
||||
virtual size_t Read(void* ptr, size_t size, size_t n) =0;
|
||||
|
||||
// Seek to the specified offset position. |whence| may be any one of
|
||||
// SEEK_CUR, SEEK_END or SEEK_SET.
|
||||
// SEEK_CUR, SEEK_END or SEEK_SET. Returns zero on success and non-zero on
|
||||
// failure.
|
||||
/*--cef()--*/
|
||||
virtual int Seek(long offset, int whence) =0;
|
||||
|
||||
|
@@ -635,7 +635,7 @@ typedef struct _cef_stream_reader_t
|
||||
size_t size, size_t n);
|
||||
|
||||
// Seek to the specified offset position. |whence| may be any one of SEEK_CUR,
|
||||
// SEEK_END or SEEK_SET.
|
||||
// SEEK_END or SEEK_SET. Returns zero on success and non-zero on failure.
|
||||
int (CEF_CALLBACK *seek)(struct _cef_stream_reader_t* self, long offset,
|
||||
int whence);
|
||||
|
||||
|
Reference in New Issue
Block a user