summaryrefslogtreecommitdiffstats
path: root/content/common/webblobregistry_impl.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-14 00:21:47 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-14 00:21:47 +0000
commitdb10d8fe8c04b6026bd9e27723694e496c763893 (patch)
tree20c62ab9c05f239ec32446cb2876affd9a9aa6e7 /content/common/webblobregistry_impl.h
parentb2d79d2f07f43899f8ece7dd9753c2955b685dd8 (diff)
downloadchromium_src-db10d8fe8c04b6026bd9e27723694e496c763893.zip
chromium_src-db10d8fe8c04b6026bd9e27723694e496c763893.tar.gz
chromium_src-db10d8fe8c04b6026bd9e27723694e496c763893.tar.bz2
Move the blob related code to content, and also move the blob messages to their own file.
TBR=jianli Review URL: http://codereview.chromium.org/6681028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77988 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/webblobregistry_impl.h')
-rw-r--r--content/common/webblobregistry_impl.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/content/common/webblobregistry_impl.h b/content/common/webblobregistry_impl.h
new file mode 100644
index 0000000..73395d9
--- /dev/null
+++ b/content/common/webblobregistry_impl.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2010 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 CHROME_COMMON_WEBBLOBREGISTRY_IMPL_H_
+#define CHROME_COMMON_WEBBLOBREGISTRY_IMPL_H_
+#pragma once
+
+#include "ipc/ipc_message.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebBlobRegistry.h"
+
+namespace WebKit {
+class WebBlobData;
+class WebBlobStorageData;
+class WebString;
+class WebURL;
+}
+
+class WebBlobRegistryImpl : public WebKit::WebBlobRegistry {
+ public:
+ explicit WebBlobRegistryImpl(IPC::Message::Sender* sender);
+ virtual ~WebBlobRegistryImpl();
+
+ // 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:
+ IPC::Message::Sender* sender_;
+};
+
+#endif // CHROME_COMMON_WEBBLOBREGISTRY_IMPL_H_