Files
cefsharp/CefSharp.Core/Internals/StreamAdapter.h
T
amaitland 85c260d07c Implement missing method in StreamAdapter
Implementation of GetResourceHandler still incomplete
2014-11-18 12:03:59 +10:00

34 lines
893 B
C++

// Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "Stdafx.h"
#include "AutoLock.h"
#pragma once
using namespace System;
using namespace System::IO;
namespace CefSharp
{
namespace Internals
{
private class StreamAdapter : public CefReadHandler
{
CriticalSection _syncRoot;
gcroot<Stream^> _stream;
public:
virtual ~StreamAdapter();
StreamAdapter(Stream^ stream) : _stream(stream) { }
virtual size_t Read(void* ptr, size_t size, size_t n);
virtual int Seek(int64 offset, int whence);
virtual int64 Tell();
virtual int Eof();
virtual bool MayBlock();
IMPLEMENT_REFCOUNTING(StreamAdapter);
};
}
}