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

Side by Side Diff: third_party/WebKit/Source/platform/blob/BlobData.h

Issue 2390833002: reflow comments in platform/{animation,blob,clipboard,exported} (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // Detaches from current thread so that it can be passed to another thread. 156 // Detaches from current thread so that it can be passed to another thread.
157 void detachFromCurrentThread(); 157 void detachFromCurrentThread();
158 158
159 const String& contentType() const { return m_contentType; } 159 const String& contentType() const { return m_contentType; }
160 void setContentType(const String&); 160 void setContentType(const String&);
161 161
162 const BlobDataItemList& items() const { return m_items; } 162 const BlobDataItemList& items() const { return m_items; }
163 163
164 void appendBytes(const void*, size_t length); 164 void appendBytes(const void*, size_t length);
165 void appendData(PassRefPtr<RawData>, long long offset, long long length); 165 void appendData(PassRefPtr<RawData>, long long offset, long long length);
166 // Do not use this version, please provide an offset and length (crbug.com/548 512). 166 // Do not use this version, please provide an offset and length
167 // (crbug.com/548512).
167 void appendFile(const String& path); 168 void appendFile(const String& path);
168 void appendFile(const String& path, 169 void appendFile(const String& path,
169 long long offset, 170 long long offset,
170 long long length, 171 long long length,
171 double expectedModificationTime); 172 double expectedModificationTime);
172 void appendBlob(PassRefPtr<BlobDataHandle>, 173 void appendBlob(PassRefPtr<BlobDataHandle>,
173 long long offset, 174 long long offset,
174 long long length); 175 long long length);
175 void appendFileSystemURL(const KURL&, 176 void appendFileSystemURL(const KURL&,
176 long long offset, 177 long long offset,
177 long long length, 178 long long length,
178 double expectedModificationTime); 179 double expectedModificationTime);
179 void appendText(const String&, bool normalizeLineEndingsToNative); 180 void appendText(const String&, bool normalizeLineEndingsToNative);
180 181
181 // The value of the size property for a Blob who has this data. 182 // The value of the size property for a Blob who has this data.
182 // BlobDataItem::toEndOfFile if the Blob has a file whose size was not yet det ermined. 183 // BlobDataItem::toEndOfFile if the Blob has a file whose size was not yet
184 // determined.
183 long long length() const; 185 long long length() const;
184 186
185 private: 187 private:
186 FRIEND_TEST_ALL_PREFIXES(BlobDataTest, Consolidation); 188 FRIEND_TEST_ALL_PREFIXES(BlobDataTest, Consolidation);
187 189
188 BlobData() {} 190 BlobData() {}
189 191
190 bool canConsolidateData(size_t length); 192 bool canConsolidateData(size_t length);
191 193
192 String m_contentType; 194 String m_contentType;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 BlobDataHandle(const String& uuid, const String& type, long long size); 228 BlobDataHandle(const String& uuid, const String& type, long long size);
227 229
228 const String m_uuid; 230 const String m_uuid;
229 const String m_type; 231 const String m_type;
230 const long long m_size; 232 const long long m_size;
231 }; 233 };
232 234
233 } // namespace blink 235 } // namespace blink
234 236
235 #endif // BlobData_h 237 #endif // BlobData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698