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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/DOMFileSystemSync.cpp

Issue 1929493002: Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add two leftover classes needing same treatment Created 4 years, 7 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 DirectoryEntrySync* DOMFileSystemSync::root() 71 DirectoryEntrySync* DOMFileSystemSync::root()
72 { 72 {
73 return m_rootEntry.get(); 73 return m_rootEntry.get();
74 } 74 }
75 75
76 namespace { 76 namespace {
77 77
78 class CreateFileHelper final : public AsyncFileSystemCallbacks { 78 class CreateFileHelper final : public AsyncFileSystemCallbacks {
79 public: 79 public:
80 class CreateFileResult : public GarbageCollectedFinalized<CreateFileResult> { 80 class CreateFileResult : public GarbageCollected<CreateFileResult> {
81 public: 81 public:
82 static CreateFileResult* create() 82 static CreateFileResult* create()
83 { 83 {
84 return new CreateFileResult(); 84 return new CreateFileResult();
85 } 85 }
86 86
87 bool m_failed; 87 bool m_failed;
88 int m_code; 88 int m_code;
89 Member<File> m_file; 89 Member<File> m_file;
90 90
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 return fileWriter; 223 return fileWriter;
224 } 224 }
225 225
226 DEFINE_TRACE(DOMFileSystemSync) 226 DEFINE_TRACE(DOMFileSystemSync)
227 { 227 {
228 DOMFileSystemBase::trace(visitor); 228 DOMFileSystemBase::trace(visitor);
229 visitor->trace(m_rootEntry); 229 visitor->trace(m_rootEntry);
230 } 230 }
231 231
232 } // namespace blink 232 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698