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

Unified Diff: third_party/WebKit/Source/core/fileapi/FileReaderSync.h

Issue 2694093002: Add a use counter and histogram to FileReaderSync. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fileapi/FileReaderSync.h
diff --git a/third_party/WebKit/Source/core/fileapi/FileReaderSync.h b/third_party/WebKit/Source/core/fileapi/FileReaderSync.h
index b6dc4cac0137e489aef0244cd3d45955eb50f87b..14bc6e24c37cf9d818db0bec7e3efc0c76585568 100644
--- a/third_party/WebKit/Source/core/fileapi/FileReaderSync.h
+++ b/third_party/WebKit/Source/core/fileapi/FileReaderSync.h
@@ -49,7 +49,9 @@ class FileReaderSync final : public GarbageCollected<FileReaderSync>,
DEFINE_WRAPPERTYPEINFO();
public:
- static FileReaderSync* create() { return new FileReaderSync(); }
+ static FileReaderSync* create(ExecutionContext* context) {
+ return new FileReaderSync(context);
+ }
DOMArrayBuffer* readAsArrayBuffer(ScriptState*, Blob*, ExceptionState&);
String readAsBinaryString(ScriptState*, Blob*, ExceptionState&);
@@ -65,7 +67,7 @@ class FileReaderSync final : public GarbageCollected<FileReaderSync>,
DEFINE_INLINE_TRACE() {}
private:
- FileReaderSync();
+ explicit FileReaderSync(ExecutionContext*);
void startLoading(ExecutionContext*,
FileReaderLoader&,
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698