mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
libcef: Update due to underlying chromium changes.
- Canvas classes moved from gfx namespace to skia namespace. - Include files moved from WebKit/port to third_party/WebKit. - Add IsMediaPlayerAvailable() webkit_glue function. - WebWidgetDelegate::GetContainingWindow() changed to WebWidgetDelegate::GetContainingView(). - Changed HCURSOR to WebCursor and HWND to gfx::NativeWindow. - WebPluginInfo 'file' member changed to 'path'. - Use base::LazyInstance for static object in BrowserPluginInstance (should be done at some point for BrowserPluginLib and BrowserPluginList as well). - BrowserPluginStream::Open() adds additional 'request_is_seekable' parameter. - Add PLUGIN_QUIRK_PATCH_SETCURSOR support to BrowserWebPluginDelegateImpl. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@6 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -27,7 +27,8 @@ BrowserPluginStream::~BrowserPluginStream() {
|
||||
bool BrowserPluginStream::Open(const std::string &mime_type,
|
||||
const std::string &headers,
|
||||
uint32 length,
|
||||
uint32 last_modified) {
|
||||
uint32 last_modified,
|
||||
bool request_is_seekable) {
|
||||
headers_ = headers;
|
||||
NPP id = instance_->npp();
|
||||
stream_.end = length;
|
||||
@ -37,7 +38,7 @@ bool BrowserPluginStream::Open(const std::string &mime_type,
|
||||
stream_.notifyData = notify_data_;
|
||||
|
||||
bool seekable_stream = false;
|
||||
if (!headers_.empty()) {
|
||||
if (request_is_seekable && !headers_.empty()) {
|
||||
stream_.headers = headers_.c_str();
|
||||
if (headers_.find("Accept-Ranges: bytes") != std::string::npos) {
|
||||
seekable_stream = true;
|
||||
|
Reference in New Issue
Block a user