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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/FileWriter.cpp

Issue 2578193004: Remove ActiveScriptWrappableBase::m_scriptWrappable (Closed)
Patch Set: temp 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 static const int kMaxRecursionDepth = 3; 43 static const int kMaxRecursionDepth = 3;
44 static const double progressNotificationIntervalMS = 50; 44 static const double progressNotificationIntervalMS = 50;
45 45
46 FileWriter* FileWriter::create(ExecutionContext* context) { 46 FileWriter* FileWriter::create(ExecutionContext* context) {
47 FileWriter* fileWriter = new FileWriter(context); 47 FileWriter* fileWriter = new FileWriter(context);
48 fileWriter->suspendIfNeeded(); 48 fileWriter->suspendIfNeeded();
49 return fileWriter; 49 return fileWriter;
50 } 50 }
51 51
52 FileWriter::FileWriter(ExecutionContext* context) 52 FileWriter::FileWriter(ExecutionContext* context)
53 : ActiveScriptWrappable<FileWriter>(this), 53 : SuspendableObject(context),
54 SuspendableObject(context),
55 m_readyState(kInit), 54 m_readyState(kInit),
56 m_operationInProgress(OperationNone), 55 m_operationInProgress(OperationNone),
57 m_queuedOperation(OperationNone), 56 m_queuedOperation(OperationNone),
58 m_bytesWritten(0), 57 m_bytesWritten(0),
59 m_bytesToWrite(0), 58 m_bytesToWrite(0),
60 m_truncateLength(-1), 59 m_truncateLength(-1),
61 m_numAborts(0), 60 m_numAborts(0),
62 m_recursionDepth(0), 61 m_recursionDepth(0),
63 m_lastProgressNotificationTimeMS(0) {} 62 m_lastProgressNotificationTimeMS(0) {}
64 63
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 308
310 DEFINE_TRACE(FileWriter) { 309 DEFINE_TRACE(FileWriter) {
311 visitor->trace(m_error); 310 visitor->trace(m_error);
312 visitor->trace(m_blobBeingWritten); 311 visitor->trace(m_blobBeingWritten);
313 EventTargetWithInlineData::trace(visitor); 312 EventTargetWithInlineData::trace(visitor);
314 FileWriterBase::trace(visitor); 313 FileWriterBase::trace(visitor);
315 SuspendableObject::trace(visitor); 314 SuspendableObject::trace(visitor);
316 } 315 }
317 316
318 } // namespace blink 317 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698