Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: public/platform/WebBlobData.h

Issue 26283005: Move blob-related code to platform/blob (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix win build Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/web.gypi ('k') | public/platform/WebThreadSafeData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebBlobData.h
diff --git a/public/platform/WebBlobData.h b/public/platform/WebBlobData.h
index d2d6e5c2fdaef4cab5c7fde6e4c3f790bad4d078..905425d193bb662c357d3a84b9e03fe38b29a6b6 100644
--- a/public/platform/WebBlobData.h
+++ b/public/platform/WebBlobData.h
@@ -31,6 +31,7 @@
#ifndef WebBlobData_h
#define WebBlobData_h
+#include "WebNonCopyable.h"
#include "WebPrivateOwnPtr.h"
#include "WebString.h"
#include "WebThreadSafeData.h"
@@ -39,13 +40,13 @@
#define USE_BLOB_UUIDS
namespace WebCore { class BlobData; }
-#if BLINK_IMPLEMENTATION
+#if INSIDE_BLINK
namespace WTF { template <typename T> class PassOwnPtr; }
#endif
namespace WebKit {
-class WebBlobData {
+class WebBlobData : public WebNonCopyable {
public:
struct Item {
enum { TypeData, TypeFile, TypeBlob, TypeFileSystemURL } type;
@@ -58,26 +59,26 @@ public:
double expectedModificationTime; // 0.0 means that the time is not set.
};
- WebBlobData();
- ~WebBlobData();
+ BLINK_PLATFORM_EXPORT WebBlobData();
+ BLINK_PLATFORM_EXPORT ~WebBlobData();
bool isNull() const { return !m_private.get(); }
// Returns the number of items.
- BLINK_EXPORT size_t itemCount() const;
+ BLINK_PLATFORM_EXPORT size_t itemCount() const;
// Retrieves the values of the item at the given index. Returns false if
// index is out of bounds.
- BLINK_EXPORT bool itemAt(size_t index, Item& result) const;
+ BLINK_PLATFORM_EXPORT bool itemAt(size_t index, Item& result) const;
- BLINK_EXPORT WebString contentType() const;
+ BLINK_PLATFORM_EXPORT WebString contentType() const;
- BLINK_EXPORT WebString contentDisposition() const;
+ BLINK_PLATFORM_EXPORT WebString contentDisposition() const;
-#if BLINK_IMPLEMENTATION
- WebBlobData(const WTF::PassOwnPtr<WebCore::BlobData>&);
- WebBlobData& operator=(const WTF::PassOwnPtr<WebCore::BlobData>&);
- operator WTF::PassOwnPtr<WebCore::BlobData>();
+#if INSIDE_BLINK
+ BLINK_PLATFORM_EXPORT WebBlobData(const WTF::PassOwnPtr<WebCore::BlobData>&);
+ BLINK_PLATFORM_EXPORT WebBlobData& operator=(const WTF::PassOwnPtr<WebCore::BlobData>&);
+ BLINK_PLATFORM_EXPORT operator WTF::PassOwnPtr<WebCore::BlobData>();
#endif
private:
« no previous file with comments | « Source/web/web.gypi ('k') | public/platform/WebThreadSafeData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698