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

Side by Side Diff: third_party/WebKit/Source/core/fileapi/FileReaderLoader.h

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 ReadAsText, 63 ReadAsText,
64 ReadAsDataURL, 64 ReadAsDataURL,
65 ReadByClient 65 ReadByClient
66 }; 66 };
67 67
68 // If client is given, do the loading asynchronously. Otherwise, load 68 // If client is given, do the loading asynchronously. Otherwise, load
69 // synchronously. 69 // synchronously.
70 static std::unique_ptr<FileReaderLoader> create( 70 static std::unique_ptr<FileReaderLoader> create(
71 ReadType readType, 71 ReadType readType,
72 FileReaderLoaderClient* client) { 72 FileReaderLoaderClient* client) {
73 return wrapUnique(new FileReaderLoader(readType, client)); 73 return WTF::wrapUnique(new FileReaderLoader(readType, client));
74 } 74 }
75 75
76 ~FileReaderLoader() override; 76 ~FileReaderLoader() override;
77 77
78 void start(ExecutionContext*, PassRefPtr<BlobDataHandle>); 78 void start(ExecutionContext*, PassRefPtr<BlobDataHandle>);
79 void start(ExecutionContext*, const Stream&, unsigned readSize); 79 void start(ExecutionContext*, const Stream&, unsigned readSize);
80 void cancel(); 80 void cancel();
81 81
82 // ThreadableLoaderClient 82 // ThreadableLoaderClient
83 void didReceiveResponse(unsigned long, 83 void didReceiveResponse(unsigned long,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 bool m_hasRange; 154 bool m_hasRange;
155 unsigned m_rangeStart; 155 unsigned m_rangeStart;
156 unsigned m_rangeEnd; 156 unsigned m_rangeEnd;
157 157
158 FileError::ErrorCode m_errorCode; 158 FileError::ErrorCode m_errorCode;
159 }; 159 };
160 160
161 } // namespace blink 161 } // namespace blink
162 162
163 #endif // FileReaderLoader_h 163 #endif // FileReaderLoader_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceLoader.cpp ('k') | third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698