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

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

Issue 614373007: Oilpan: Remove adoptRefCountedGarbageCollected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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/encryptedmedia/MediaKeySession.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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 static const char* supplementName() { return "FileReaderThrottlingController "; } 212 static const char* supplementName() { return "FileReaderThrottlingController "; }
213 213
214 const size_t m_maxRunningReaders; 214 const size_t m_maxRunningReaders;
215 FileReaderDeque m_pendingReaders; 215 FileReaderDeque m_pendingReaders;
216 FileReaderHashSet m_runningReaders; 216 FileReaderHashSet m_runningReaders;
217 }; 217 };
218 218
219 FileReader* FileReader::create(ExecutionContext* context) 219 FileReader* FileReader::create(ExecutionContext* context)
220 { 220 {
221 FileReader* fileReader = adoptRefCountedGarbageCollectedWillBeNoop(new FileR eader(context)); 221 FileReader* fileReader = new FileReader(context);
222 fileReader->suspendIfNeeded(); 222 fileReader->suspendIfNeeded();
223 return fileReader; 223 return fileReader;
224 } 224 }
225 225
226 FileReader::FileReader(ExecutionContext* context) 226 FileReader::FileReader(ExecutionContext* context)
227 : ActiveDOMObject(context) 227 : ActiveDOMObject(context)
228 , m_state(EMPTY) 228 , m_state(EMPTY)
229 , m_loadingState(LoadingStateNone) 229 , m_loadingState(LoadingStateNone)
230 , m_readType(FileReaderLoader::ReadAsBinaryString) 230 , m_readType(FileReaderLoader::ReadAsBinaryString)
231 , m_lastProgressNotificationTimeMS(0) 231 , m_lastProgressNotificationTimeMS(0)
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 return m_loader->stringResult(); 484 return m_loader->stringResult();
485 } 485 }
486 486
487 void FileReader::trace(Visitor* visitor) 487 void FileReader::trace(Visitor* visitor)
488 { 488 {
489 visitor->trace(m_error); 489 visitor->trace(m_error);
490 EventTargetWithInlineData::trace(visitor); 490 EventTargetWithInlineData::trace(visitor);
491 } 491 }
492 492
493 } // namespace blink 493 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/modules/encryptedmedia/MediaKeySession.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698