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

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

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
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 30 matching lines...) Expand all
41 #include "public/platform/WebFileWriterClient.h" 41 #include "public/platform/WebFileWriterClient.h"
42 #include "wtf/RefPtr.h" 42 #include "wtf/RefPtr.h"
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 class Blob; 46 class Blob;
47 class ExceptionState; 47 class ExceptionState;
48 class ExecutionContext; 48 class ExecutionContext;
49 49
50 class FileWriter FINAL : public FileWriterBase, public ScriptWrappable, public A ctiveDOMObject, public EventTargetWithInlineData, public blink::WebFileWriterCli ent { 50 class FileWriter FINAL : public FileWriterBase, public ScriptWrappable, public A ctiveDOMObject, public EventTargetWithInlineData, public blink::WebFileWriterCli ent {
51 REFCOUNTED_EVENT_TARGET(FileWriterBase); 51 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedGarbageCollected<FileWriterBase>);
52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FileWriter); 52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FileWriter);
53 public: 53 public:
54 static PassRefPtrWillBeRawPtr<FileWriter> create(ExecutionContext*); 54 static FileWriter* create(ExecutionContext*);
55 55
56 enum ReadyState { 56 enum ReadyState {
57 INIT = 0, 57 INIT = 0,
58 WRITING = 1, 58 WRITING = 1,
59 DONE = 2 59 DONE = 2
60 }; 60 };
61 61
62 void write(Blob*, ExceptionState&); 62 void write(Blob*, ExceptionState&);
63 void seek(long long position, ExceptionState&); 63 void seek(long long position, ExceptionState&);
64 void truncate(long long length, ExceptionState&); 64 void truncate(long long length, ExceptionState&);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 long long m_truncateLength; 118 long long m_truncateLength;
119 long long m_numAborts; 119 long long m_numAborts;
120 long long m_recursionDepth; 120 long long m_recursionDepth;
121 double m_lastProgressNotificationTimeMS; 121 double m_lastProgressNotificationTimeMS;
122 RefPtrWillBeMember<Blob> m_blobBeingWritten; 122 RefPtrWillBeMember<Blob> m_blobBeingWritten;
123 }; 123 };
124 124
125 } // namespace WebCore 125 } // namespace WebCore
126 126
127 #endif // FileWriter_h 127 #endif // FileWriter_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/FileSystemCallbacks.cpp ('k') | Source/modules/filesystem/FileWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698