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

Side by Side Diff: WebCore/platform/network/BlobData.h

Issue 12183004: Patch 3 in the series. (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 7 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 unified diff | Download patch
« no previous file with comments | « WebCore/platform/gtk/AsyncFileSystemGtk.cpp ('k') | WebCore/platform/network/BlobData.cpp » ('j') | 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) 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 BlobData() { } 195 BlobData() { }
196 196
197 // This is only exposed to BlobStorageData. 197 // This is only exposed to BlobStorageData.
198 void appendData(const RawData&, long long offset, long long length); 198 void appendData(const RawData&, long long offset, long long length);
199 199
200 String m_contentType; 200 String m_contentType;
201 String m_contentDisposition; 201 String m_contentDisposition;
202 BlobDataItemList m_items; 202 BlobDataItemList m_items;
203 }; 203 };
204 204
205 // FIXME: This class is mostly place holder until I get farther along in landing
206 // https://codereview.chromium.org/11192017/.
207 class BlobDataHandle : public ThreadSafeRefCounted<BlobDataHandle> {
208 public:
209 static PassRefPtr<BlobDataHandle> create(PassOwnPtr<BlobData> data, long lon g size)
210 {
211 return adoptRef(new BlobDataHandle(data, size));
212 }
213
214 ~BlobDataHandle();
215
216 private:
217 BlobDataHandle(PassOwnPtr<BlobData> data, long long size);
218 KURL m_internalURL;
219 };
220
205 } // namespace WebCore 221 } // namespace WebCore
206 222
207 #endif // BlobData_h 223 #endif // BlobData_h
OLDNEW
« no previous file with comments | « WebCore/platform/gtk/AsyncFileSystemGtk.cpp ('k') | WebCore/platform/network/BlobData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698