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

Side by Side Diff: public/platform/WebDragData.h

Issue 193803002: Prevent web content from forging File entries in drag and drop. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« Source/core/page/DragData.cpp ('K') | « Source/web/WebDragData.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 BLINK_EXPORT void reset(); 95 BLINK_EXPORT void reset();
96 BLINK_EXPORT void assign(const WebDragData&); 96 BLINK_EXPORT void assign(const WebDragData&);
97 97
98 BLINK_EXPORT WebVector<Item> items() const; 98 BLINK_EXPORT WebVector<Item> items() const;
99 BLINK_EXPORT void setItems(const WebVector<Item>&); 99 BLINK_EXPORT void setItems(const WebVector<Item>&);
100 BLINK_EXPORT void addItem(const Item&); 100 BLINK_EXPORT void addItem(const Item&);
101 101
102 BLINK_EXPORT WebString filesystemId() const; 102 BLINK_EXPORT WebString filesystemId() const;
103 BLINK_EXPORT void setFilesystemId(const WebString&); 103 BLINK_EXPORT void setFilesystemId(const WebString&);
104 104
105 BLINK_EXPORT void setFilenameForNavigation(const WebString&);
106
105 #if BLINK_IMPLEMENTATION 107 #if BLINK_IMPLEMENTATION
106 explicit WebDragData(const PassRefPtrWillBeRawPtr<WebCore::DataObject>&); 108 explicit WebDragData(const PassRefPtrWillBeRawPtr<WebCore::DataObject>&);
107 WebDragData& operator=(const PassRefPtrWillBeRawPtr<WebCore::DataObject>&); 109 WebDragData& operator=(const PassRefPtrWillBeRawPtr<WebCore::DataObject>&);
108 WebCore::DataObject* getValue() const; 110 WebCore::DataObject* getValue() const;
109 #endif 111 #endif
110 112
111 private: 113 private:
112 void ensureMutable(); 114 void ensureMutable();
113 WebPrivatePtr<WebCore::DataObject> m_private; 115 WebPrivatePtr<WebCore::DataObject> m_private;
114 }; 116 };
115 117
116 } // namespace blink 118 } // namespace blink
117 119
118 #endif 120 #endif
OLDNEW
« Source/core/page/DragData.cpp ('K') | « Source/web/WebDragData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698