From 231d4e3152a9c27a73b6ac7badbe6be673aa3ddf Mon Sep 17 00:00:00 2001 From: Steve Block Date: Thu, 8 Oct 2009 17:19:54 +0100 Subject: Merge webkit.org at R49305 : Automatic merge by git. Change-Id: I8968561bc1bfd72b8923b7118d3728579c6dbcc7 --- WebCore/platform/chromium/ChromiumDataObject.h | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'WebCore/platform/chromium/ChromiumDataObject.h') diff --git a/WebCore/platform/chromium/ChromiumDataObject.h b/WebCore/platform/chromium/ChromiumDataObject.h index 3e8675e..a227001 100644 --- a/WebCore/platform/chromium/ChromiumDataObject.h +++ b/WebCore/platform/chromium/ChromiumDataObject.h @@ -55,7 +55,38 @@ namespace WebCore { void clear(); bool hasData() const; + + KURL mainURL() const { return url; } + void setMainURL(const KURL& newURL) { url = newURL; } + String mainURLTitle() const { return urlTitle; } + void setMainURLTitle(const String& newURLTitle) { urlTitle = newURLTitle; } + + String textPlain() const { return plainText; } + void setTextPlain(const String& newText) { plainText = newText; } + + String textHTML() const { return textHtml; } + void setTextHTML(const String& newText) { textHtml = newText; } + + KURL htmlBaseURL() const { return htmlBaseUrl; } + void setHTMLBaseURL(const KURL& newURL) { htmlBaseUrl = newURL; } + + SharedBuffer* content() const { return fileContent.get(); } + PassRefPtr releaseContent() { return fileContent.release(); } + void setContent(PassRefPtr newContent) { fileContent = newContent; } + + String contentFileExtension() const { return fileExtension; } + void setContentFileExtension(const String& newFileExtension) { fileExtension = newFileExtension; } + + String contentFileName() const { return fileContentFilename; } + void setContentFileName(const String& newFilename) { fileContentFilename = newFilename; } + + const Vector& fileNames() const { return filenames; } + void setFileNames(const Vector& newFilenames) { filenames = newFilenames; } + void takeFileNames(Vector& newFilenames) { filenames.swap(newFilenames); } + + // Interim state: All members will become private, do NOT access them directly! + // Rather use the above accessor methods (or devise new ones if necessary). KURL url; String urlTitle; -- cgit v1.1