X Tutup
// Copyright (c) 2013 CEF Python, see the Authors file. // All rights reserved. Licensed under BSD 3-clause license. // Project website: https://github.com/cztomczak/cefpython #pragma once #if defined(_WIN32) #include #endif #include "common/cefpython_public_api.h" class ResourceHandler : public CefResourceHandler { public: int resourceHandlerId_; public: ResourceHandler(int resourceHandlerId) : resourceHandlerId_(resourceHandlerId) { } virtual bool ProcessRequest(CefRefPtr request, CefRefPtr callback) override; virtual void GetResponseHeaders(CefRefPtr response, int64& response_length, CefString& redirectUrl) override; virtual bool ReadResponse(void* data_out, int bytes_to_read, int& bytes_read, CefRefPtr callback) override; virtual bool CanGetCookie(const CefCookie& cookie) override; virtual bool CanSetCookie(const CefCookie& cookie) override; virtual void Cancel() OVERRIDE; private: IMPLEMENT_REFCOUNTING(ResourceHandler); };
X Tutup