mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Add download handling support via new CefDownloadHandler and CefDownloadItem interfaces (issue #516).
- Fix setting of CefKeyEvent.focus_on_editable_field when the underlying RenderViewHost changes. - Fix potential crash if URLRequest objects are still in-progress upon shutdown. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@715 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
45
libcef/browser/download_item_impl.h
Normal file
45
libcef/browser/download_item_impl.h
Normal file
@@ -0,0 +1,45 @@
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
|
||||
#ifndef CEF_LIBCEF_BROWSER_DOWNLOAD_ITEM_IMPL_H_
|
||||
#define CEF_LIBCEF_BROWSER_DOWNLOAD_ITEM_IMPL_H_
|
||||
#pragma once
|
||||
|
||||
#include "include/cef_download_item.h"
|
||||
#include "libcef/common/value_base.h"
|
||||
|
||||
namespace content {
|
||||
class DownloadItem;
|
||||
}
|
||||
|
||||
// CefDownloadItem implementation
|
||||
class CefDownloadItemImpl
|
||||
: public CefValueBase<CefDownloadItem, content::DownloadItem> {
|
||||
public:
|
||||
explicit CefDownloadItemImpl(content::DownloadItem* value);
|
||||
|
||||
// CefDownloadItem methods.
|
||||
virtual bool IsValid() OVERRIDE;
|
||||
virtual bool IsInProgress() OVERRIDE;
|
||||
virtual bool IsComplete() OVERRIDE;
|
||||
virtual bool IsCanceled() OVERRIDE;
|
||||
virtual int64 GetCurrentSpeed() OVERRIDE;
|
||||
virtual int GetPercentComplete() OVERRIDE;
|
||||
virtual int64 GetTotalBytes() OVERRIDE;
|
||||
virtual int64 GetReceivedBytes() OVERRIDE;
|
||||
virtual CefTime GetStartTime() OVERRIDE;
|
||||
virtual CefTime GetEndTime() OVERRIDE;
|
||||
virtual CefString GetFullPath() OVERRIDE;
|
||||
virtual int32 GetId() OVERRIDE;
|
||||
virtual CefString GetURL() OVERRIDE;
|
||||
virtual CefString GetSuggestedFileName() OVERRIDE;
|
||||
virtual CefString GetContentDisposition() OVERRIDE;
|
||||
virtual CefString GetMimeType() OVERRIDE;
|
||||
virtual CefString GetReferrerCharset() OVERRIDE;
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(CefDownloadItemImpl);
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_BROWSER_DOWNLOAD_ITEM_IMPL_H_
|
Reference in New Issue
Block a user