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

Unified Diff: third_party/WebKit/WebCore/platform/chromium/ClipboardChromium.h

Issue 20504: I'm expanding this to fix a couple of bugs in determining the file name for... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « no previous file | third_party/WebKit/WebCore/platform/chromium/ClipboardChromium.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/platform/chromium/ClipboardChromium.h
===================================================================
--- third_party/WebKit/WebCore/platform/chromium/ClipboardChromium.h (revision 10151)
+++ third_party/WebKit/WebCore/platform/chromium/ClipboardChromium.h (working copy)
@@ -47,6 +47,12 @@
static PassRefPtr<ClipboardChromium> create(
bool isForDragging, PassRefPtr<ChromiumDataObject>, ClipboardAccessPolicy);
+ // Returns the file name (not including the extension). This removes any
+ // invalid file system characters as well as making sure the
+ // path + extension is not bigger than allowed by the file system.
+ // This may change the file extension in dataObject.
+ static String validateFileName(const String& title, ChromiumDataObject* dataObject);
+
virtual void clearData(const String& type);
void clearAllData();
String getData(const String& type, bool& success) const;
« no previous file with comments | « no previous file | third_party/WebKit/WebCore/platform/chromium/ClipboardChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698