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

Unified Diff: chrome/common/os_exchange_data.h

Issue 11247: Remove cf_html from webdropdata.h. This is windows (Closed)
Patch Set: fix feedback Created 12 years, 1 month 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 | « chrome/browser/web_contents_view_win.cc ('k') | chrome/common/os_exchange_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/os_exchange_data.h
diff --git a/chrome/common/os_exchange_data.h b/chrome/common/os_exchange_data.h
index 55ed6ad6ee0866fa4f433542744f69587cea530b..735e366f45be79f17a3d0225b55be40a8c1c798b 100644
--- a/chrome/common/os_exchange_data.h
+++ b/chrome/common/os_exchange_data.h
@@ -56,8 +56,9 @@ class OSExchangeData : public IDataObject {
// Adds the bytes of a file (CFSTR_FILECONTENTS and CFSTR_FILEDESCRIPTOR).
void SetFileContents(const std::wstring& filename,
const std::string& file_contents);
- // Adds a snippet of Windows HTML (CF_HTML).
- void SetCFHtml(const std::wstring& cf_html);
+ // Adds a snippet of HTML. |html| is just raw html but this sets both
+ // text/html and CF_HTML.
+ void SetHtml(const std::wstring& html, const GURL& base_url);
// These functions retrieve data of the specified type. If data exists, the
// functions return and the result is in the out parameter. If the data does
@@ -70,7 +71,7 @@ class OSExchangeData : public IDataObject {
bool GetPickledData(CLIPFORMAT format, Pickle* data) const;
bool GetFileContents(std::wstring* filename,
std::string* file_contents) const;
- bool GetCFHtml(std::wstring* cf_html) const;
+ bool GetHtml(std::wstring* html, GURL* base_url) const;
// Test whether or not data of certain types is present, without actually
// returning anything.
@@ -141,4 +142,3 @@ class OSExchangeData : public IDataObject {
};
#endif // #ifndef CHROME_COMMON_OS_EXCHANGE_DATA_H__
-
« no previous file with comments | « chrome/browser/web_contents_view_win.cc ('k') | chrome/common/os_exchange_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698