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

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

Issue 15127005: Make filesystem objects ScriptWrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Really fix revert of DOMWindowFileSystem. Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/filesystem/FileWriter.h ('k') | Source/modules/filesystem/FileWriterSync.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 , m_readyState(INIT) 57 , m_readyState(INIT)
58 , m_operationInProgress(OperationNone) 58 , m_operationInProgress(OperationNone)
59 , m_queuedOperation(OperationNone) 59 , m_queuedOperation(OperationNone)
60 , m_bytesWritten(0) 60 , m_bytesWritten(0)
61 , m_bytesToWrite(0) 61 , m_bytesToWrite(0)
62 , m_truncateLength(-1) 62 , m_truncateLength(-1)
63 , m_numAborts(0) 63 , m_numAborts(0)
64 , m_recursionDepth(0) 64 , m_recursionDepth(0)
65 , m_lastProgressNotificationTimeMS(0) 65 , m_lastProgressNotificationTimeMS(0)
66 { 66 {
67 ScriptWrappable::init(this);
67 } 68 }
68 69
69 FileWriter::~FileWriter() 70 FileWriter::~FileWriter()
70 { 71 {
71 ASSERT(!m_recursionDepth); 72 ASSERT(!m_recursionDepth);
72 if (m_readyState == WRITING) 73 if (m_readyState == WRITING)
73 stop(); 74 stop();
74 } 75 }
75 76
76 const AtomicString& FileWriter::interfaceName() const 77 const AtomicString& FileWriter::interfaceName() const
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 ASSERT(m_recursionDepth >= 0); 319 ASSERT(m_recursionDepth >= 0);
319 } 320 }
320 321
321 void FileWriter::setError(FileError::ErrorCode errorCode, ExceptionCode& ec) 322 void FileWriter::setError(FileError::ErrorCode errorCode, ExceptionCode& ec)
322 { 323 {
323 ec = FileException::ErrorCodeToExceptionCode(errorCode); 324 ec = FileException::ErrorCodeToExceptionCode(errorCode);
324 m_error = FileError::create(errorCode); 325 m_error = FileError::create(errorCode);
325 } 326 }
326 327
327 } // namespace WebCore 328 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/filesystem/FileWriter.h ('k') | Source/modules/filesystem/FileWriterSync.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698