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

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

Issue 211853002: Revert 169711 "Prevent web content from forging File entries in ..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 8 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
« no previous file with comments | « trunk/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
107 #if BLINK_IMPLEMENTATION 105 #if BLINK_IMPLEMENTATION
108 explicit WebDragData(const PassRefPtrWillBeRawPtr<WebCore::DataObject>&); 106 explicit WebDragData(const PassRefPtrWillBeRawPtr<WebCore::DataObject>&);
109 WebDragData& operator=(const PassRefPtrWillBeRawPtr<WebCore::DataObject>&); 107 WebDragData& operator=(const PassRefPtrWillBeRawPtr<WebCore::DataObject>&);
110 WebCore::DataObject* getValue() const; 108 WebCore::DataObject* getValue() const;
111 #endif 109 #endif
112 110
113 private: 111 private:
114 void ensureMutable(); 112 void ensureMutable();
115 WebPrivatePtr<WebCore::DataObject> m_private; 113 WebPrivatePtr<WebCore::DataObject> m_private;
116 }; 114 };
117 115
118 } // namespace blink 116 } // namespace blink
119 117
120 #endif 118 #endif
OLDNEW
« no previous file with comments | « trunk/Source/web/WebDragData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698