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

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

Issue 383103002: 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
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;
75 76
76 // EventTarget 77 // EventTarget
77 virtual const AtomicString& interfaceName() const OVERRIDE; 78 virtual const AtomicString& interfaceName() const OVERRIDE;
78 virtual ExecutionContext* executionContext() const OVERRIDE { return ActiveD OMObject::executionContext(); } 79 virtual ExecutionContext* executionContext() const OVERRIDE { return ActiveD OMObject::executionContext(); }
79 80
80 DEFINE_ATTRIBUTE_EVENT_LISTENER(writestart); 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(writestart);
81 DEFINE_ATTRIBUTE_EVENT_LISTENER(progress); 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(progress);
82 DEFINE_ATTRIBUTE_EVENT_LISTENER(write); 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(write);
83 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); 84 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort);
84 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 85 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 long long m_truncateLength; 118 long long m_truncateLength;
118 long long m_numAborts; 119 long long m_numAborts;
119 long long m_recursionDepth; 120 long long m_recursionDepth;
120 double m_lastProgressNotificationTimeMS; 121 double m_lastProgressNotificationTimeMS;
121 RefPtrWillBeMember<Blob> m_blobBeingWritten; 122 RefPtrWillBeMember<Blob> m_blobBeingWritten;
122 }; 123 };
123 124
124 } // namespace WebCore 125 } // namespace WebCore
125 126
126 #endif // FileWriter_h 127 #endif // FileWriter_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/filesystem/FileWriter.cpp » ('j') | Source/modules/filesystem/FileWriter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698