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

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

Issue 13497009: Remove ENABLE(FILE_SYSTEM) compile-time flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: added CodeGeneratorInspector.py change Created 7 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
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Constructor for Blob type. 103 // Constructor for Blob type.
104 BlobDataItem(const KURL& url, long long offset, long long length) 104 BlobDataItem(const KURL& url, long long offset, long long length)
105 : type(Blob) 105 : type(Blob)
106 , url(url) 106 , url(url)
107 , offset(offset) 107 , offset(offset)
108 , length(length) 108 , length(length)
109 , expectedModificationTime(invalidFileTime()) 109 , expectedModificationTime(invalidFileTime())
110 { 110 {
111 } 111 }
112 112
113 #if ENABLE(FILE_SYSTEM)
114 // Constructor for URL type (e.g. FileSystem files). 113 // Constructor for URL type (e.g. FileSystem files).
115 BlobDataItem(const KURL& url, long long offset, long long length, double exp ectedModificationTime) 114 BlobDataItem(const KURL& url, long long offset, long long length, double exp ectedModificationTime)
116 : type(URL) 115 : type(URL)
117 , url(url) 116 , url(url)
118 , offset(offset) 117 , offset(offset)
119 , length(length) 118 , length(length)
120 , expectedModificationTime(expectedModificationTime) 119 , expectedModificationTime(expectedModificationTime)
121 { 120 {
122 } 121 }
123 #endif
124 122
125 // Detaches from current thread so that it can be passed to another thread. 123 // Detaches from current thread so that it can be passed to another thread.
126 void detachFromCurrentThread(); 124 void detachFromCurrentThread();
127 125
128 enum { 126 enum {
129 Data, 127 Data,
130 File, 128 File,
131 Blob 129 Blob,
132 #if ENABLE(FILE_SYSTEM) 130 URL
133 , URL
134 #endif
135 } type; 131 } type;
136 132
137 // For Data type. 133 // For Data type.
138 RefPtr<RawData> data; 134 RefPtr<RawData> data;
139 135
140 // For File type. 136 // For File type.
141 String path; 137 String path;
142 138
143 // For Blob or URL type. 139 // For Blob or URL type.
144 KURL url; 140 KURL url;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 const String& contentDisposition() const { return m_contentDisposition; } 173 const String& contentDisposition() const { return m_contentDisposition; }
178 void setContentDisposition(const String& contentDisposition) { m_contentDisp osition = contentDisposition; } 174 void setContentDisposition(const String& contentDisposition) { m_contentDisp osition = contentDisposition; }
179 175
180 const BlobDataItemList& items() const { return m_items; } 176 const BlobDataItemList& items() const { return m_items; }
181 void swapItems(BlobDataItemList&); 177 void swapItems(BlobDataItemList&);
182 178
183 void appendData(PassRefPtr<RawData>, long long offset, long long length); 179 void appendData(PassRefPtr<RawData>, long long offset, long long length);
184 void appendFile(const String& path); 180 void appendFile(const String& path);
185 void appendFile(const String& path, long long offset, long long length, doub le expectedModificationTime); 181 void appendFile(const String& path, long long offset, long long length, doub le expectedModificationTime);
186 void appendBlob(const KURL&, long long offset, long long length); 182 void appendBlob(const KURL&, long long offset, long long length);
187 #if ENABLE(FILE_SYSTEM)
188 void appendURL(const KURL&, long long offset, long long length, double expec tedModificationTime); 183 void appendURL(const KURL&, long long offset, long long length, double expec tedModificationTime);
189 #endif
190 184
191 private: 185 private:
192 friend class BlobRegistryImpl; 186 friend class BlobRegistryImpl;
193 friend class BlobStorageData; 187 friend class BlobStorageData;
194 188
195 BlobData() { } 189 BlobData() { }
196 190
197 // This is only exposed to BlobStorageData. 191 // This is only exposed to BlobStorageData.
198 void appendData(const RawData&, long long offset, long long length); 192 void appendData(const RawData&, long long offset, long long length);
199 193
(...skipping 15 matching lines...) Expand all
215 ~BlobDataHandle(); 209 ~BlobDataHandle();
216 210
217 private: 211 private:
218 BlobDataHandle(PassOwnPtr<BlobData>, long long size); 212 BlobDataHandle(PassOwnPtr<BlobData>, long long size);
219 KURL m_internalURL; 213 KURL m_internalURL;
220 }; 214 };
221 215
222 } // namespace WebCore 216 } // namespace WebCore
223 217
224 #endif // BlobData_h 218 #endif // BlobData_h
OLDNEW
« no previous file with comments | « Source/WebCore/platform/chromium/support/WebHTTPBody.cpp ('k') | Source/WebCore/platform/network/BlobData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698