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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/SyncCallbackHelper.h

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: Created 4 years, 6 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 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 Member<HelperType> m_helper; 112 Member<HelperType> m_helper;
113 }; 113 };
114 114
115 class ErrorCallbackImpl final : public ErrorCallback { 115 class ErrorCallbackImpl final : public ErrorCallback {
116 public: 116 public:
117 static ErrorCallbackImpl* create(HelperType* helper) 117 static ErrorCallbackImpl* create(HelperType* helper)
118 { 118 {
119 return new ErrorCallbackImpl(helper); 119 return new ErrorCallbackImpl(helper);
120 } 120 }
121 121
122 void handleEvent(DOMException* error) override
123 {
124 NOTREACHED();
125 }
126
122 void handleEvent(FileError* error) override 127 void handleEvent(FileError* error) override
123 { 128 {
124 ASSERT(error); 129 ASSERT(error);
125 m_helper->setError(error->code()); 130 m_helper->setError(error->code());
126 } 131 }
127 132
128 DEFINE_INLINE_TRACE() 133 DEFINE_INLINE_TRACE()
129 { 134 {
130 visitor->trace(m_helper); 135 visitor->trace(m_helper);
131 ErrorCallback::trace(visitor); 136 ErrorCallback::trace(visitor);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 }; 171 };
167 172
168 typedef SyncCallbackHelper<EntryCallback, Entry*, EntrySync> EntrySyncCallbackHe lper; 173 typedef SyncCallbackHelper<EntryCallback, Entry*, EntrySync> EntrySyncCallbackHe lper;
169 typedef SyncCallbackHelper<MetadataCallback, Metadata*, Metadata> MetadataSyncCa llbackHelper; 174 typedef SyncCallbackHelper<MetadataCallback, Metadata*, Metadata> MetadataSyncCa llbackHelper;
170 typedef SyncCallbackHelper<VoidCallback, EmptyType*, EmptyType> VoidSyncCallback Helper; 175 typedef SyncCallbackHelper<VoidCallback, EmptyType*, EmptyType> VoidSyncCallback Helper;
171 typedef SyncCallbackHelper<FileSystemCallback, DOMFileSystem*, DOMFileSystemSync > FileSystemSyncCallbackHelper; 176 typedef SyncCallbackHelper<FileSystemCallback, DOMFileSystem*, DOMFileSystemSync > FileSystemSyncCallbackHelper;
172 177
173 } // namespace blink 178 } // namespace blink
174 179
175 #endif // SyncCallbackHelper_h 180 #endif // SyncCallbackHelper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698