cef/libcef/browser_webblobregistry_impl.h
Marshall Greenblatt eff39b0f11 Update to Chromium revision 113143.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@426 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
2011-12-16 14:51:10 +00:00

47 lines
1.5 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 BROWSER_WEBBLOBREGISTRY_IMPL_H_
#define BROWSER_WEBBLOBREGISTRY_IMPL_H_
#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);
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 // BROWSER_WEBBLOBREGISTRY_IMPL_H_