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

Side by Side Diff: Source/core/fileapi/FileReader.h

Issue 440913002: DevTools: Async call stacks for FileSystem API part 2. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 virtual void trace(Visitor*) OVERRIDE; 100 virtual void trace(Visitor*) OVERRIDE;
101 101
102 private: 102 private:
103 explicit FileReader(ExecutionContext*); 103 explicit FileReader(ExecutionContext*);
104 104
105 class ThrottlingController; 105 class ThrottlingController;
106 106
107 void terminate(); 107 void terminate();
108 void readInternal(Blob*, FileReaderLoader::ReadType, ExceptionState&); 108 void readInternal(Blob*, FileReaderLoader::ReadType, ExceptionState&);
109 void fireErrorEvent(int httpStatusCode);
aandrey 2014/08/05 16:03:59 dead code
110 void fireEvent(const AtomicString& type); 109 void fireEvent(const AtomicString& type);
111 110
112 void executePendingRead(); 111 void executePendingRead();
113 112
114 ReadyState m_state; 113 ReadyState m_state;
115 114
116 // Internal loading state, which could differ from ReadyState as it's 115 // Internal loading state, which could differ from ReadyState as it's
117 // for script-visible state while this one's for internal state. 116 // for script-visible state while this one's for internal state.
118 enum LoadingState { 117 enum LoadingState {
119 LoadingStateNone, 118 LoadingStateNone,
120 LoadingStatePending, 119 LoadingStatePending,
121 LoadingStateLoading, 120 LoadingStateLoading,
122 LoadingStateAborted 121 LoadingStateAborted
123 }; 122 };
124 LoadingState m_loadingState; 123 LoadingState m_loadingState;
125 124
126 String m_blobType; 125 String m_blobType;
127 RefPtr<BlobDataHandle> m_blobDataHandle; 126 RefPtr<BlobDataHandle> m_blobDataHandle;
128 FileReaderLoader::ReadType m_readType; 127 FileReaderLoader::ReadType m_readType;
129 String m_encoding; 128 String m_encoding;
130 129
131 OwnPtr<FileReaderLoader> m_loader; 130 OwnPtr<FileReaderLoader> m_loader;
132 RefPtrWillBeMember<FileError> m_error; 131 RefPtrWillBeMember<FileError> m_error;
133 double m_lastProgressNotificationTimeMS; 132 double m_lastProgressNotificationTimeMS;
133 int m_asyncOperationId;
134 }; 134 };
135 135
136 } // namespace blink 136 } // namespace blink
137 137
138 #endif // FileReader_h 138 #endif // FileReader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698