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

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

Issue 383993008: Revert of FileWriter should not use deprecated {,un}setPendingActivity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « no previous file | Source/modules/filesystem/FileWriter.cpp » ('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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ReadyState readyState() const { return m_readyState; } 65 ReadyState readyState() const { return m_readyState; }
66 FileError* error() const { return m_error.get(); } 66 FileError* error() const { return m_error.get(); }
67 67
68 // WebFileWriterClient 68 // WebFileWriterClient
69 virtual void didWrite(long long bytes, bool complete) OVERRIDE; 69 virtual void didWrite(long long bytes, bool complete) OVERRIDE;
70 virtual void didTruncate() OVERRIDE; 70 virtual void didTruncate() OVERRIDE;
71 virtual void didFail(blink::WebFileError) OVERRIDE; 71 virtual void didFail(blink::WebFileError) OVERRIDE;
72 72
73 // ActiveDOMObject 73 // ActiveDOMObject
74 virtual void stop() OVERRIDE; 74 virtual void stop() OVERRIDE;
75 virtual bool hasPendingActivity() const OVERRIDE;
76 75
77 // EventTarget 76 // EventTarget
78 virtual const AtomicString& interfaceName() const OVERRIDE; 77 virtual const AtomicString& interfaceName() const OVERRIDE;
79 virtual ExecutionContext* executionContext() const OVERRIDE { return ActiveD OMObject::executionContext(); } 78 virtual ExecutionContext* executionContext() const OVERRIDE { return ActiveD OMObject::executionContext(); }
80 79
81 DEFINE_ATTRIBUTE_EVENT_LISTENER(writestart); 80 DEFINE_ATTRIBUTE_EVENT_LISTENER(writestart);
82 DEFINE_ATTRIBUTE_EVENT_LISTENER(progress); 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(progress);
83 DEFINE_ATTRIBUTE_EVENT_LISTENER(write); 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(write);
84 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort);
85 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 84 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 long long m_truncateLength; 117 long long m_truncateLength;
119 long long m_numAborts; 118 long long m_numAborts;
120 long long m_recursionDepth; 119 long long m_recursionDepth;
121 double m_lastProgressNotificationTimeMS; 120 double m_lastProgressNotificationTimeMS;
122 RefPtrWillBeMember<Blob> m_blobBeingWritten; 121 RefPtrWillBeMember<Blob> m_blobBeingWritten;
123 }; 122 };
124 123
125 } // namespace WebCore 124 } // namespace WebCore
126 125
127 #endif // FileWriter_h 126 #endif // FileWriter_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/filesystem/FileWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698