diff options
author | Steve Block <steveblock@google.com> | 2009-10-08 17:19:54 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2009-10-20 00:41:58 +0100 |
commit | 231d4e3152a9c27a73b6ac7badbe6be673aa3ddf (patch) | |
tree | a6c7e2d6cd7bfa7011cc39abbb436142d7a4a7c8 /WebCore/platform/chromium/ChromiumDataObject.h | |
parent | e196732677050bd463301566a68a643b6d14b907 (diff) | |
download | external_webkit-231d4e3152a9c27a73b6ac7badbe6be673aa3ddf.zip external_webkit-231d4e3152a9c27a73b6ac7badbe6be673aa3ddf.tar.gz external_webkit-231d4e3152a9c27a73b6ac7badbe6be673aa3ddf.tar.bz2 |
Merge webkit.org at R49305 : Automatic merge by git.
Change-Id: I8968561bc1bfd72b8923b7118d3728579c6dbcc7
Diffstat (limited to 'WebCore/platform/chromium/ChromiumDataObject.h')
-rw-r--r-- | WebCore/platform/chromium/ChromiumDataObject.h | 31 |
1 files changed, 31 insertions, 0 deletions
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<SharedBuffer> releaseContent() { return fileContent.release(); } + void setContent(PassRefPtr<SharedBuffer> 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<String>& fileNames() const { return filenames; } + void setFileNames(const Vector<String>& newFilenames) { filenames = newFilenames; } + void takeFileNames(Vector<String>& 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; |