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

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

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 file_system_url(file_system_url), 117 file_system_url(file_system_url),
118 offset(offset), 118 offset(offset),
119 length(length), 119 length(length),
120 expected_modification_time(expected_modification_time) {} 120 expected_modification_time(expected_modification_time) {}
121 121
122 // Detaches from current thread so that it can be passed to another thread. 122 // Detaches from current thread so that it can be passed to another thread.
123 void DetachFromCurrentThread(); 123 void DetachFromCurrentThread();
124 124
125 const enum { kData, kFile, kBlob, kFileSystemURL } type; 125 const enum { kData, kFile, kBlob, kFileSystemURL } type;
126 126
127 RefPtr<RawData> data; // For Data type. 127 RefPtr<RawData> data; // For Data type.
128 String path; // For File type. 128 String path; // For File type.
129 KURL file_system_url; // For FileSystemURL type. 129 KURL file_system_url; // For FileSystemURL type.
130 RefPtr<BlobDataHandle> blob_data_handle; // For Blob type. 130 RefPtr<BlobDataHandle> blob_data_handle; // For Blob type.
131 131
132 long long offset; 132 long long offset;
133 long long length; 133 long long length;
134 double expected_modification_time; 134 double expected_modification_time;
135 135
136 private: 136 private:
137 friend class BlobData; 137 friend class BlobData;
138 138
139 // Constructor for String type (partial string). 139 // Constructor for String type (partial string).
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 const String uuid_; 256 const String uuid_;
257 const String type_; 257 const String type_;
258 const long long size_; 258 const long long size_;
259 const bool is_single_unknown_size_file_; 259 const bool is_single_unknown_size_file_;
260 storage::mojom::blink::BlobPtr blob_; 260 storage::mojom::blink::BlobPtr blob_;
261 }; 261 };
262 262
263 } // namespace blink 263 } // namespace blink
264 264
265 #endif // BlobData_h 265 #endif // BlobData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698