#define CEF_INCLUDE_WRAPPER_CEF_BYTE_READ_HANDLER_H_
#pragma once
+#include "include/base/cef_lock.h"
+#include "include/base/cef_macros.h"
#include "include/cef_base.h"
#include "include/cef_stream.h"
///
CefByteReadHandler(const unsigned char* bytes,
size_t size,
- CefRefPtr<CefBase> source);
+ CefRefPtr<CefBaseRefCounted> source);
// CefReadHandler methods.
virtual size_t Read(void* ptr, size_t size, size_t n) OVERRIDE;
const unsigned char* bytes_;
int64 size_;
int64 offset_;
- CefRefPtr<CefBase> source_;
+ CefRefPtr<CefBaseRefCounted> source_;
+
+ base::Lock lock_;
IMPLEMENT_REFCOUNTING(CefByteReadHandler);
- IMPLEMENT_LOCKING(CefByteReadHandler);
+ DISALLOW_COPY_AND_ASSIGN(CefByteReadHandler);
};
#endif // CEF_INCLUDE_WRAPPER_CEF_BYTE_READ_HANDLER_H_