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

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

Issue 2616923002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Fix errors Created 3 years, 11 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 24 matching lines...) Expand all
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "wtf/text/WTFString.h" 36 #include "wtf/text/WTFString.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class Blob; 40 class Blob;
41 class DOMArrayBuffer; 41 class DOMArrayBuffer;
42 class ExceptionState; 42 class ExceptionState;
43 class ExecutionContext; 43 class ExecutionContext;
44 class FileReaderLoader; 44 class FileReaderLoader;
45 class ScriptState;
45 46
46 class FileReaderSync final : public GarbageCollected<FileReaderSync>, 47 class FileReaderSync final : public GarbageCollected<FileReaderSync>,
47 public ScriptWrappable { 48 public ScriptWrappable {
48 DEFINE_WRAPPERTYPEINFO(); 49 DEFINE_WRAPPERTYPEINFO();
49 50
50 public: 51 public:
51 static FileReaderSync* create() { return new FileReaderSync(); } 52 static FileReaderSync* create() { return new FileReaderSync(); }
52 53
53 DOMArrayBuffer* readAsArrayBuffer(ExecutionContext*, Blob*, ExceptionState&); 54 DOMArrayBuffer* readAsArrayBuffer(ScriptState*, Blob*, ExceptionState&);
54 String readAsBinaryString(ExecutionContext*, Blob*, ExceptionState&); 55 String readAsBinaryString(ScriptState*, Blob*, ExceptionState&);
55 String readAsText(ExecutionContext* executionContext, 56 String readAsText(ScriptState* scriptState, Blob* blob, ExceptionState& ec) {
56 Blob* blob, 57 return readAsText(scriptState, blob, "", ec);
57 ExceptionState& ec) {
58 return readAsText(executionContext, blob, "", ec);
59 } 58 }
60 String readAsText(ExecutionContext*, 59 String readAsText(ScriptState*,
61 Blob*, 60 Blob*,
62 const String& encoding, 61 const String& encoding,
63 ExceptionState&); 62 ExceptionState&);
64 String readAsDataURL(ExecutionContext*, Blob*, ExceptionState&); 63 String readAsDataURL(ScriptState*, Blob*, ExceptionState&);
65 64
66 DEFINE_INLINE_TRACE() {} 65 DEFINE_INLINE_TRACE() {}
67 66
68 private: 67 private:
69 FileReaderSync(); 68 FileReaderSync();
70 69
71 void startLoading(ExecutionContext*, 70 void startLoading(ExecutionContext*,
72 FileReaderLoader&, 71 FileReaderLoader&,
73 const Blob&, 72 const Blob&,
74 ExceptionState&); 73 ExceptionState&);
75 }; 74 };
76 75
77 } // namespace blink 76 } // namespace blink
78 77
79 #endif // FileReaderSync_h 78 #endif // FileReaderSync_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMStringList.idl ('k') | third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698