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

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

Issue 314333002: Enable Oilpan by default in modules/filesystem/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove consts from conversion ctor + copy assignment op Created 6 years, 6 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
« no previous file with comments | « Source/modules/filesystem/FileWriter.h ('k') | Source/modules/filesystem/FileWriter.idl » ('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 26 matching lines...) Expand all
37 #include "core/fileapi/Blob.h" 37 #include "core/fileapi/Blob.h"
38 #include "public/platform/WebFileWriter.h" 38 #include "public/platform/WebFileWriter.h"
39 #include "public/platform/WebURL.h" 39 #include "public/platform/WebURL.h"
40 #include "wtf/CurrentTime.h" 40 #include "wtf/CurrentTime.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 static const int kMaxRecursionDepth = 3; 44 static const int kMaxRecursionDepth = 3;
45 static const double progressNotificationIntervalMS = 50; 45 static const double progressNotificationIntervalMS = 50;
46 46
47 PassRefPtrWillBeRawPtr<FileWriter> FileWriter::create(ExecutionContext* context) 47 FileWriter* FileWriter::create(ExecutionContext* context)
48 { 48 {
49 RefPtrWillBeRawPtr<FileWriter> fileWriter(adoptRefWillBeRefCountedGarbageCol lected(new FileWriter(context))); 49 FileWriter* fileWriter = adoptRefCountedGarbageCollected(new FileWriter(cont ext));
50 fileWriter->suspendIfNeeded(); 50 fileWriter->suspendIfNeeded();
51 return fileWriter.release(); 51 return fileWriter;
52 } 52 }
53 53
54 FileWriter::FileWriter(ExecutionContext* context) 54 FileWriter::FileWriter(ExecutionContext* context)
55 : ActiveDOMObject(context) 55 : ActiveDOMObject(context)
56 , m_readyState(INIT) 56 , m_readyState(INIT)
57 , m_operationInProgress(OperationNone) 57 , m_operationInProgress(OperationNone)
58 , m_queuedOperation(OperationNone) 58 , m_queuedOperation(OperationNone)
59 , m_bytesWritten(0) 59 , m_bytesWritten(0)
60 , m_bytesToWrite(0) 60 , m_bytesToWrite(0)
61 , m_truncateLength(-1) 61 , m_truncateLength(-1)
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 void FileWriter::trace(Visitor* visitor) 321 void FileWriter::trace(Visitor* visitor)
322 { 322 {
323 visitor->trace(m_error); 323 visitor->trace(m_error);
324 visitor->trace(m_blobBeingWritten); 324 visitor->trace(m_blobBeingWritten);
325 FileWriterBase::trace(visitor); 325 FileWriterBase::trace(visitor);
326 EventTargetWithInlineData::trace(visitor); 326 EventTargetWithInlineData::trace(visitor);
327 } 327 }
328 328
329 } // namespace WebCore 329 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/filesystem/FileWriter.h ('k') | Source/modules/filesystem/FileWriter.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698