mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-05 22:48:06 +01:00
801ff3ca43
- Move to the new DOM storage backend. Persistent localStorage support will need to be re-implemented (issue #603). - Add CefV8Value::CreateUInt method and indicate that integer types are 32bit via usage of int32 and uint32 types (issue #331). - Add CefV8Context::Eval method for synchronous JavaScript execution that returns a value or exception (issue #444). - Move exception handling from an ExecuteFunction argument to a CefV8Value attribute (issue #546). - Make user data an attribute for all CefV8Value object types and not just CreateObject (issue #547). - Un-fork SQLitePersistentCookieStore by adding stub implementations for sqlite_diagnostics and browser_thread. - Update tools/cef_parser.py to match the CEF3 version. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@644 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
51 lines
1.6 KiB
C++
51 lines
1.6 KiB
C++
// Copyright (c) 2011 The Chromium 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_WEBBLOBREGISTRY_IMPL_H_
|
|
#define CEF_LIBCEF_BROWSER_WEBBLOBREGISTRY_IMPL_H_
|
|
#pragma once
|
|
|
|
#include "base/memory/ref_counted.h"
|
|
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobRegistry.h"
|
|
|
|
class GURL;
|
|
|
|
namespace webkit_blob {
|
|
class BlobData;
|
|
class BlobStorageController;
|
|
}
|
|
|
|
class BrowserWebBlobRegistryImpl
|
|
: public WebKit::WebBlobRegistry,
|
|
public base::RefCountedThreadSafe<BrowserWebBlobRegistryImpl> {
|
|
public:
|
|
static void InitializeOnIOThread(
|
|
webkit_blob::BlobStorageController* blob_storage_controller);
|
|
static void Cleanup();
|
|
|
|
BrowserWebBlobRegistryImpl();
|
|
|
|
// See WebBlobRegistry.h for documentation on these functions.
|
|
virtual void registerBlobURL(const WebKit::WebURL& url,
|
|
WebKit::WebBlobData& data);
|
|
virtual void registerBlobURL(const WebKit::WebURL& url,
|
|
const WebKit::WebURL& src_url);
|
|
virtual void unregisterBlobURL(const WebKit::WebURL& url);
|
|
|
|
protected:
|
|
virtual ~BrowserWebBlobRegistryImpl();
|
|
|
|
private:
|
|
friend class base::RefCountedThreadSafe<BrowserWebBlobRegistryImpl>;
|
|
|
|
// Run on I/O thread.
|
|
void AddFinishedBlob(const GURL& url, webkit_blob::BlobData* blob_data);
|
|
void CloneBlob(const GURL& url, const GURL& src_url);
|
|
void RemoveBlob(const GURL& url);
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(BrowserWebBlobRegistryImpl);
|
|
};
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_WEBBLOBREGISTRY_IMPL_H_
|